// JavaScript Document
function OpenCenteredWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
	myHeight = parseInt(myHeight) + 45;
 	if(window.screen)if(isCenter)if(isCenter=="true"){
    	var myLeft = (screen.width-myWidth)/2;
    	var myTop = (screen.height-myHeight)/2;
  	}
	
  	OpenWin = this.open(theURL, "KirupaStyle", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=2,left=" + myLeft + ",top=" + myTop + ",width=" + myWidth + ",height=" + myHeight);
}

function PopupPic(sPicURL, isCenter) { 

	if(window.screen)if(isCenter)if(isCenter=="true"){
    	var myLeft2 = (screen.width-myWidth)/2;
    	var myTop2 = (screen.height-myHeight)/2;
		var myLeft = 0;
    	var myTop = 0;
  	}

	window.open("/pages/popup.htm?"+sPicURL, "", "left=" + myLeft + ",top=" + myTop + ",resizable=1,HEIGHT=200,WIDTH=200");

}
