function open_window(url)
{ 
new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=1,status=0,scrollbars=1,width=760,height=520,left=10,top=10')
if (window.focus) {new_window.focus()}
}

function confirmandredirectclose(location) {
   	if (window.confirm("You are now leaving the Summerlove site to visit an external site which is intended for U.S. residents only."))
	{
   	window.open(location);
  	}
}

function verifyForm(){

	var blnchecked1;
	blnchecked1 = false;
	var blnchecked2;
	blnchecked2 = false;
	var blnchecked3;
	blnchecked3 = false;
	var blnchecked4;
	blnchecked4 = false;
	
	//first question
	for(i=0; i<window.document.quickpoll_form.elements.length; i++){
		if (window.document.quickpoll_form.elements[i].name == "answer1") {
			if (window.document.quickpoll_form.elements[i].checked == true) {
				blnchecked1 = true;
			}
		}
	}
		
	if (blnchecked1==false){
		alert("Please fill in the first question.");
		return false;
	}else{
		blnchecked1 = false;
	}
	
	// second question
	for(i=0; i<window.document.quickpoll_form.elements.length; i++){
		if (window.document.quickpoll_form.elements[i].name == "answer2") {
			if (window.document.quickpoll_form.elements[i].checked == true) {
				blnchecked2 = true;
			}
		}
	}
		
	if (blnchecked2==false){
		alert("Please fill in the second question.");
		return false;
	}else{
		blnchecked2 = false;
	}
	
	// third question
	for(i=0; i<window.document.quickpoll_form.elements.length; i++){
		if (window.document.quickpoll_form.elements[i].name == "answer3") {
			if (window.document.quickpoll_form.elements[i].checked == true) {
				blnchecked3 = true;
			}
		}
	}
		
	if (blnchecked3==false){
		alert("Please fill in the third question.");
		return false;
	}else{
		blnchecked3 = false;
	}	
	
		// fourth question
	for(i=0; i<window.document.quickpoll_form.elements.length; i++){
		if (window.document.quickpoll_form.elements[i].name == "answer4") {
			if (window.document.quickpoll_form.elements[i].checked == true) {
				blnchecked4 = true;
			}
		}
	}
		
	if (blnchecked4==false){
		alert("Please fill in the fourth question.");
		return false;
	}else{
		blnchecked4 = false;
	}
	
}