// JavaScript Document



// Best pop up


<!-- This Script Provided Free By www.DesignerWiz.com Free Script Code Generators -->

function popUp(page,PWidth,PHeight,id) {
eval("popup"+id+"=window.open('"+page+"','popup1','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width="+PWidth+",height="+PHeight+"')")
eval("popup"+id+".window.moveTo((screen.width/2)-(PWidth/2),(screen.height/2)-(PHeight/2))")
}




// SECOND ATTEMPT

function popUpSide(page,PWidth,PHeight,id) {
 eval("popupside"+id+"=window.open('"+page+"','popupside1','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width="+PWidth+",height="+PHeight+"')")
eval("popup"+id+".window.moveTo((screen.width/2)-(PWidth/0),(screen.height/2)-(PHeight/2))")
//eval("popup"+id+".window.moveTo((0,0))")

}









/* Modify and possibly use this - from page wizard launch

07.16.09


function goNewWin() {
// Set height and width
var NewWinWidth=750;
var NewWinHeight=750;

// Place the window
var NewWinPutX=25;
var NewWinPutY=50;

TheNewWin =window.open("page-wizard.php",'PageWizard','fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); 

TheNewWin.resizeTo(NewWinWidth,NewWinHeight);
TheNewWin.moveTo(NewWinPutX,NewWinPutY);
}








/*

//Moving the window to a desired location
//You can use the window.moveTo function to move the popup window to a desired location.
//The code below shows positioning the popup at a desired location 

function mypopup()
 {
   mywindow = window.open ("http://www.javascript-coder.com",
  "mywindow","location=1,status=1,scrollbars=1,
  width=100,height=100");
  mywindow.moveTo(0,0);
 } 


//The code positions the popup on the top left corner of the screen. 
*/