﻿/*
 * CVS Data
 * ----------------------------------------------------------------------------
 * $Source: D:/CVSREPO/Raytek/DatapaqWeb/javascript/Common.js,v $
 * $Author: sdhere $
 * $Revision: 1.1 $
 * $Date: 2010/12/13 12:33:19 $
 * $Log: Common.js,v $
 * Revision 1.1  2010/12/13 12:33:19  sdhere
 * *** empty log message ***
 *
*/


//summary
/*
This function opens the new window
*/
function PopItUp(sURL,intWidth,intHeight)
{
    window.open(sURL,'','status=no,height='+intHeight+',width='+intWidth+',scrollbars=1,resizable=1,toolbar=0');
}

function PopItUpCustomizable(sURL,intWidth,intHeight, blScrollBar, blResizable, blToolbar, blStatus)
{
//    //to open screen in top center
//    var widthScr = 800/2, popupLeft = (widthScr - (intWidth/2)); 
//    
//	if (window.screen) {
//		widthScr = Math.floor(screen.availWidth/2);
//		popupLeft = Math.floor(widthScr - (intWidth/2));
//	}  

    //window.open(sURL,'','left=0,top=0,height='+intHeight+',width='+intWidth+',scrollbars='+ blScrollBar + ',resizable=' + blResizable + ',toolbar=' + blToolbar + 'status='+ blStatus);
    window.open(sURL,'','height='+intHeight+',width='+intWidth+',scrollbars='+ blScrollBar +',resizable='+blResizable+',toolbar='+ blToolbar+',status='+ blStatus);
    
    

}

