function validate(){
		if(document.getElementById('fromname').value == ''){
			alert('Please enter your name');
			return false;
		}else if(document.getElementById('email').value == ''){
			alert('Please enter your email address');
			return false;
		}else if(document.getElementById('mobile').value == ''){
			alert('Please enter your mobile number');
			return false;
		}else if(isValidEmail(document.getElementById('email').value) == false){
			alert('Please enter a valid email address');
			return false;
		}else{
			return true;
		}
		
	}
	
function isValidEmail(str) {
	return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	
}

function open_map(url)
{
	newwindow=window.open('/libs/' + url,'name','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=715,width=600');
	if (window.focus) {newwindow.focus()}
}

function open_graph(url, width, height)
{
	height = height + 135;
	width = width + 15 + width + 15;
	newwindow=window.open('/libs/' + url,'name','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=' + height + ',width='+ width);
	if (window.focus) {newwindow.focus()}
}

function open_plan(url, width, height)
{
	height = height + 135;
	width = width + 15;
	newwindow=window.open('/libs/' + url,'name','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=' + height + ',width='+ width);
	if (window.focus) {newwindow.focus()}
}

