<!--
function openWindow(nextpage,windowName,percent) {
	//var adjWidth = 630, adjHeight = 440; // default sizes
	var w = 630, h = 440;
	var popW = 630, popH = 440;

	if (document.all || document.layers) {
   		w = screen.availWidth;
   		h = screen.availHeight-100;
	}

	if (window.screen) {
	        popW = w * percent / 100;
        	popH = h * percent / 100;
    	}
	var topPos = (w-popW)/2, leftPos = (h-popH)/2;

//    	popup=window.open(nextpage,windowName,'width=' + popW + ',height=' + popH + ',top='+topPos+',left='+leftPos +',toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
//    	if (!popup.opener)
//    		popup.opener = self;
//    		//setTimeout('self.close()',1000);
        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + popW + ',height=' + popH + ',top='+topPos+',left='+leftPos +',toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
    	opener.focus();
    		
}

function openfixwin(nextpage,windowName,width,height) {
//    	popup=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=yes,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
//    	if (!popup.opener)
//    		popup.opener = self;

        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=yes,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
    	opener.focus();
}

function openscrollwin(nextpage,windowName,width,height) {
        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=yes,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
    	opener.focus();
}

function openonlyscrollwin(nextpage,windowName,width,height) {
        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=no,resizable=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
    	opener.focus();
}

function openwin(nextpage,windowName,width,height) {
        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=no,resizable=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
    	opener.focus();
//    	popup=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=no,resizable=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
//    	if (!popup.opener)
//    		popup.opener = self;
}

function opensizablewin(nextpage,windowName,width,height) {
        if (!opener)
    	var opener=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=no,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
    	opener.focus();
//    	popup=window.open(nextpage,windowName,'width=' + width + ',height=' + height + ',top='+ 0 +',left='+ 0 +',toolbar=no,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=no');
//    	if (!popup.opener)
//    		popup.opener = self;
}

function openNormalWin(nextpage, windowName)
{
    if(!opener)
        var opener = window.open(nextpage, windowName);
    opener.focus();
}
//-->
