/***********************************************************************************
** General Energy Services Inc.                                                   **
** Genergy Online Javascript                                                      **
** File Name: genergy_online.js                                                   ** 
** General Energy Services Inc., Copyright 2008 - 2009                            **
** The Contents of this file may no be copied, duplicated or redistributed        **
** in any form without the prior written consent of General Energy Services Inc.  **
************************************************************************************/

/************************************************************************************
** IF YOU ADD CODE TO THIS FILE, MAKE SURE THAT THEY DON'T ALREADY EXIST           **
** INTELLESENCE WILL NOT CATCH IT AND MAY CAUSE ERRORS TO THE WEBSITE!             **
*************************************************************************************/


//*Open Window Pop
function popUp(page, windowsizew, windowsizeh,scrollstat,id){
	var w = windowsizew;
	var h = windowsizeh;
	var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;

    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',status=yes,scrollbars='+scrollstat+',resizable=yes'
     // open new window and use the variables to position it
	//popupwin=window.open(page,'login','WIDTH=400, HEIGHT=300, scrollbars=no,left='+x+',top='+y)
	popupwin=window.open(page,id,winprops)
	popupwin.focus(id)
}


