<!--
/********************************************
AUTHOR:WWW.CGISCRIPT.NET.LLC
URL:http://www.cgiscript.net
Use the code for FREE but leave this message intact
Download your FREE CGI/Perl Scripts today!
( http://www.cgiscript.net/scripts.htm )
****************************************************/
var CustomerSurveyWindow=null;
function CustomerSurvey(mypage,myname,w,h,pos,infocus){
	if(pos=='random') {
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=='center') {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!='center' && pos!='random') || pos==null) {
		LeftPosition=25;TopPosition=100;
	}
	settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no,dependent=no';
	CustomerSurveyWindow=window.open('',myname,settings);
	if(infocus=='front') {
		CustomerSurveyWindow.focus();CustomerSurveyWindow.location='survey.cfm';
	}
}
//-->
