function WDPopUpVox(url,WinDiName,TTS,lang,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h - 40)/2;
	}
	
    parent.topmenu.location.replace('http://www.windi7.com/top.php?L='+lang+'');
    
    WinDiHandle1 = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle1.focus();
}

function WDPopUpVox1(url,WinDiName,TTS,lang,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h - 40)/2;
	}
	
        
    WinDiHandle1 = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle1.focus();
}


function WDPopUp(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h)/2;
	}
	
    WinDiHandle = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=no,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle.focus();
}

function WDPopUp1(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h - 40)/2;
	}
	
    WinDiHandle1 = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle1.focus();
}

function WDPopUp11(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h - 40)/2;
	}
	
    WinDiHandle1 = window.open(url,WinDiName,'toolbar=yes,location=0,directories=0,status=0,menubar=yes,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle1.focus();
}

function WDPopUp12(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h - 40)/2;
	}
	
    WinDiHandle1 = window.open(url,WinDiName,'toolbar=yes,location=0,directories=0,status=0,menubar=no,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle1.focus();
}


function WDPopUp2(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h)/2;
	}
	
    WinDiHandle2 = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle2.focus();
}

function WDPopUpMTSite(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 50
	height = yMax - 180
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 140)/2;

	}
	
    WDHle2 = window.open(url,WinDiName,'toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WDHle2.focus();
}

function WDTop() {
 <!-- setTimeout('window.history.back()',60000); -->
 WDPopUp('http://www.windi7.com/winditopf.htm','winditop','yes','268','132','1','15','15')
}

function WDTop_Free() {
 <!-- setTimeout('window.history.back()',10000); -->
 WDPopUp('http://www.windi7.com/winditopf1.php','wdtopf','yes','305','132','1','15','15')
}

function WDPopUpFull(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 35
	height = yMax - 80
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 100)/2;

	}

    HandyHandle1 = window.open(url,WinDiName,'toolbar=yes,location=0,directories=0,status=0,menubar=no,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    HandyHandle1.focus();
}

function WDPopUpFullStatus(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 35
	height = yMax - 90
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 100)/2;

	}

    HandyHandle1 = window.open(url,WinDiName,'toolbar=yes,location=0,directories=0,status=1,menubar=no,scrollbars='+scroll+',resizable=no,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    HandyHandle1.focus();
}

function WDPopUpFullWDT(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 200
	height = yMax - 230
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 100)/2;

	}

    HandyHandle1 = window.open(url,WinDiName,'toolbar=yes,location=0,directories=0,status=0,menubar=no,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    HandyHandle1.focus();
}


function WDPopUpFull1(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 60
	height = yMax - 75
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 80)/2;

	}

    HandyHandle2 = window.open(url,WinDiName,'toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    HandyHandle2.focus();
}

function WDPopUpFull1Status(url,WinDiName,scroll,OffSet,xOff,yOff) {	
	var xMax, yMax, width, height;
	    
        xMax = screen.width;
        yMax = screen.height;

	width = xMax - 30
	height = yMax - 75
    		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w - 10)/2;
                yOffset = (yMax - h - 80)/2;

	}

    HandyHandle2 = window.open(url,WinDiName,'toolbar=no,location=0,directories=0,status=1,menubar=no,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    HandyHandle2.focus();
}

function WDPopUpWWS(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h)/2;
	}
	
    WinDiHandle = window.open(url+'&n='+WinDiName,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    //WinDiHandle.focus();
    WinDiHandle.blur();
}



function WDPopUpW(url,WinDiName,scroll,width,height,OffSet,xOff,yOff) {	
	var xMax, yMax;
	
    if (document.all) {
        xMax = screen.width;
        yMax = screen.height;
    }
    else  {
        xMax = window.outerWidth;
        yMax = window.outerHeight;                    
    }

	if ( xMax == 0 ) {
		xMax = 640;
		yMax = 480;
	}
		
	var w = width;
	var h = height;

	var xOffset = xOff;
	var yOffset = yOff;

	if ( OffSet == 0 ) {
                xOffset = (xMax - w)/2;
                yOffset = (yMax - h)/2;
	}
	
    WinDiHandle = window.open(url,WinDiName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
    WinDiHandle.focus();
}



function load()
{

var isSaf = (navigator.userAgent.toLowerCase().indexOf('safari') != -1);

  if(isSaf)
    escape = myescape;
  var name = escape(escape(escape(document.getElementById('fakeName').value)));
  if (0 == name.length)
    return;
    
  //parent.main_office.location.replace("http://www.aypwip.org/webnote/" + name);
  //document.location.href = "http://www.aypwip.org/webnote/" + name;

  //nameloc = "http://www.aypwip.org/webnote/" + name;

  nameloc = "http://www.handyserv.com/handy_webnote.php?work=" + name;

  //WDPopUpFull1(nameloc,'webnote','yes','1','10','10');

  WDPopUpW(nameloc,'webnote','yes','790','590','1','25','25');

}




