function openwinpop(URL, width, height) {	// Winpop Open
	appearance="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height;
	return  window.open(URL, 'POPUP', appearance);
}
function openwinpop2(URL, width, height) {	// Winpop Open
	appearance="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height;
	return  window.open(URL, 'POPUP2', appearance);
}
function openwinpopN(URL, width, height, number) {	// Winpop Open
	appearance="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",left=100,top=100";
	return  window.open(URL, 'POPUP'+number, appearance);
}

function openwinpopP(URL, width, height, left, top, number) {	// Winpop Open
	appearance="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",left="+left+",top="+top;
	return  window.open(URL, 'POPUP'+number, appearance);
}

function Print() {	// Winpop Print
	window.print();
}

function window_onscroll()
{
	document.all["Hidden_Scroll"].value = document.body.scrollTop;
}
	
function window_onload()
{
	if(document.all["Hidden_Scroll"].value>0 ) 
	document.body.scrollTop=document.all["Hidden_Scroll"].value ;
}


		function ShowDetail(obj,maxh,chk){
			var myobj = eval("document.all."+obj);
			var mychk = eval("document.all."+chk);
			for (var i=1;i<8;i++){
				var hide = eval("document.all.f"+i)
				if (myobj != hide){ 
				hide.style.pixelHeight = 0;
				hide.style.display='none';}
			}
			if(myobj.style.pixelHeight)	
			{
				mychk.value = '0';
				menuHide(myobj,maxh);
			}
			else 
			{
				mychk.value = '1';
				menuShow(myobj,maxh);
			}
		}
		
		function menuShow(obj,maxh){
			if(obj.style.pixelHeight<maxh){
				obj.style.pixelHeight+=maxh/24;
				obj.filters.alpha.opacity+=5;
				if(obj.style.pixelHeight==maxh/24)
					obj.style.display='block';
				mymaxh = maxh;
				myobj = obj;
				setTimeout('menuShow(myobj,mymaxh)','5');
			}
		}
		
		function menuHide(obj,maxh){
			if(obj.style.pixelHeight>0){
				if(obj.style.pixelHeight==maxh/24) obj.style.display='none';
				obj.style.pixelHeight-=maxh/24;
				obj.filters.alpha.opacity-=5;
				myObj=obj;
				myMaxh=maxh
				setTimeout('menuHide(myObj,myMaxh)','5');
			}
		}

/*function HideAll(){
	for(var i =1;i<7;i++)
	{
		var obj = eval("document.all.f"+i);
		obj.style.display='none';
	}
}
		

function ShowDetail(obj,maxh, chk)
{
	var myobj = eval("document.all."+obj);
	alert(myobj.style.pixelHeight);
	if(myobj.style.pixelHeight > 0)	
	{
		var O_C = eval("document.all."+chk);
		O_C.value = '0';
		menuHide(myobj,maxh);
	}
	else 
	{
		var O_C = eval("document.all."+chk);
		O_C.value = '1';
		menuShow(myobj,maxh);
	}
}
		
function menuShow(obj,maxh)
{ 
    if(obj.style.pixelHeight < maxh)
	{
		if(obj.style.pixelHeight==maxh/24) obj.style.display='';
		obj.style.pixelHeight+=maxh/24;
		alert('p' + obj.style.pixelHeight);
		obj.filters.alpha.opacity+=5;
		//mychk = chk;
		mymaxh = maxh;
		myobj = obj;
	    
		setTimeout('menuShow(myobj,mymaxh)','5');
	}
}	
		
function menuHide(obj,maxh)
{
	if(obj.style.pixelHeight>0)
	{
		if(obj.style.pixelHeight==maxh/24) obj.style.display='none';
			obj.style.pixelHeight-=maxh/24;
			obj.filters.alpha.opacity-=5;
			//mychk = chk;
			myObj=obj;
			myMaxh=maxh;
			//alert(obj.style.pixelHeight);
			setTimeout('menuHide(myObj,myMaxh)','5');
	}
}*/
