// Copyright (c) 2007 Cyber-dynamics International Inc. All Rights Reserved.  info@cyber-dynamics.co// Copyright (c) 1999-2006 Cyber-dynamics International Inc. All Rights Reserved.  info@cyber-dynamics.com





// This stand alone script opens a popup window

//

// Usage initPopup(); 

//

// Testing mode: initPopup(1); - forces a window to open even if iShopPopup = 0 

//

// Troubleshooting: check your browser allows popups









// set iShowPopup to 1 to show the popup window, set it to 0 to iSuppress the popup:

var iShowPopup=0;

 

// enter URL for popup

var iPopupURL = "/internetnewspaper/load-survey.shtml";

 

// enter position (in pixels)

var iLeft = 100;

var iTop = 25;

 

// enter size of window (in pixels)

var iWidth = 580;

var iHeight = 757;

 

// set iResizable = 0 (not resizable) or = 1 (user can resize)

var iResizable = 1;



// set iScrollbars = 0 (no scrollbars) or = 1 (scrollbars)

var iScrollbars = 1;









// Do not edit below this line....

 

function initPopup(iTest) {

	if ((iShowPopup==1)||(iTest==1)){

		iPopUp(iPopupURL,iLeft,iTop,iWidth,iHeight,iResizable,iScrollbars);	

}	}



var  iSupp;

function iPopUp(url,pLeft,pTop,pWidth,pHeight,pResizable,pScrollbars){ 

var sRZ,sSB;

if (pWidth<10){pWidth=400;} if (pHeight<10){pHeight=200;} 

if (pResizable==1) {sRZ='yes';}else{sRZ='no';}

if (pScrollbars==1) {sSB='yes';}else{sSB='no';}

var str='left='+pLeft+',top='+pTop +',width='+pWidth+',height='+pHeight+',resizable='+sRZ+',scrollbars='+sSB;

if (iSupp) {if (iSupp.open) {iSupp.close();}} 

iSupp=window.open(url,"popper1",str); 

if (iSupp){if(!iSupp.opener){iSupp.opener = self;} if (iSupp.focus != null) {iSupp.focus();}} 

return false;}

	



