var pop='';
function openwin(nm,width,height,w_per,h_per){
	var name=nm;
	var screen_h=window.screen.height;
	var screen_w=window.screen.width;
	var x_cor=parseInt((w_per/100)*screen_w);
	var y_cor=parseInt((h_per/100)*screen_h);
	if (pop && !pop.closed)
			pop.close();
	pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes,left='+x_cor+',top='+y_cor+'')");
	pop.moveTo(x_cor,y_cor);
	if (!pop.opener)
		popUpWin.opener = self;
	if(window.focus)
		pop.focus();
}

function checkform()
{
	if (document.casereview.first.value == '') {
		
		alert('Please Provide Your First Name');
		return false;
	}
	else if ((!document.casereview.emailmethod.checked) && (!document.casereview.phonemethod.checked)) {
		
		alert('Please Choose a Preferred Method of Contact');
		return false;
	}

	else if ((!document.casereview.area[0].checked) && (!document.casereview.area[1].checked) && (!document.casereview.area[2].checked) && (!document.casereview.area[3].checked)) {
		
		alert('Please Choose What The Message Relates To');
		return false;
	}



	return true;
}




function checkformside()
{
	if (document.casereview.name.value == '') {
		
		alert('Please Provide Your Name');
		return false;
	}
	else if (document.casereview.phone.value == '') {
		
		alert('Please Provide Your Phone Number');
		return false;
	}

	else if (document.casereview.email.value == '') {
		
		alert('Please Provide Your Email');
		return false;
	}

	return true;
}



