function openWin(url, width, height) {
	width=width+20;
	var w = 480, h = 340;
	var popupDate = new Date();
	var popupName = 'popup' + popupDate.getTime();
	
	if (screen != null && screen.availWidth != null) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	
	var popW = width, popH = height;
	var leftPos = (w - popW) / 2, topPos = (h - popH) / 2;
	
	window.open(url, popupName, 'width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,top='+topPos+',left='+leftPos);
}

function openWin2(url, width, height) {
	width=width+20;
	var w = 480, h = 340;
	var popupDate = new Date();
	var popupName = 'popup' + popupDate.getTime();
	
	if (screen != null && screen.availWidth != null) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	
	var popW = width, popH = height;
	var leftPos = (w - popW) / 2, topPos = (h - popH + 400) / 2;
	
	window.open(url, popupName,'width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,top='+topPos+',left='+leftPos);
}

function openWinS(url, width, height) {
	width=width+20;
	var w = 480, h = 340;
	var popupDate = new Date();
	var popupName = 'popup' + popupDate.getTime();
	
	if (screen != null && screen.availWidth != null) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	
	var popW = width, popH = height;
	var leftPos = (w - popW) / 2, topPos = (h - popH) / 2;
	
	window.open(url, popupName,'width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,top='+topPos+',left='+leftPos);
}

var doSurvey = 1;

function showSurvey(){
	if(doSurvey == 1) {
    var popURL = "/survey.cfm";
    var popTitle = "popupSurvey";
    var popWidth = 330;
    var popHeight = 335;
    var popParms = "scrollbars=no,menu=no,left=2000,top="+popHeight+",screenX=2000,screenY="+popHeight+",resizable=yes,status=no,width="+popWidth+",height="+popHeight;

    var surveyWindow = window.open(popURL, popTitle, popParms);
    self.focus();
	}
}

