﻿/*
 * CVS Data
 * ----------------------------------------------------------------------------
 * $Source: E:/CVSREPO/Raytek/RaytekWeb/javascript/Common.js,v $
 * $Author: DANAHERTM\njain $
 * $Revision: 1.7 $
 * $Date: 2007/10/19 10:00:39 $
 * $Log: Common.js,v $
 * Revision 1.7  2007/10/19 10:00:39  DANAHERTM\njain
 * Remove opening window in center top.
 *
 * Revision 1.6  2007/10/09 09:05:00  DANAHERTM\njain
 * Updated to not set window at top center
 *
 * Revision 1.5  2007/09/19 07:15:30  DANAHERTM\njain
 * Resolved spotsize resizing issue
 *
 * Revision 1.4  2007/09/07 08:41:22  DANAHERTM\njain
 * Added new PopItUpCustomizable function. it resolved matis id: 1786
 *
 * Revision 1.3  2007/07/26 04:20:49  DANAHERTM\nsarkate
 * removed comments
 *
 * Revision 1.2  2007/07/26 04:18:53  DANAHERTM\nsarkate
 * removed comments
 *
 * Revision 1.1  2007/07/25 11:39:15  DANAHERTM\nsarkate
 * common javascript file for all functions
 *
 *
 *
*/

//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);
    
    

}

