function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages('http://gicexchange.ca/images/loading_quick.gif');
function quickContact(thisform)
{	
	
	with(thisform)
	{	
		if (fname.value == "")	
				{	alert("Woops! You forgot to fill in your Name.");
					fname.focus(); return false;
				}
	
		if(email.value=="")
			{	alert("Woops! You forgot to fill in your Email Address.");
				email.focus(); 
				return false;
			}
		if(checkMailId(email.value)==false)
			 {
				email.select();
				email.focus();
				return false;
				
			 }	
		if(city.value=="")
			{	alert("Woops! You forgot to fill in your City .");
				city.focus(); return false;
			}
		/*if(phone.value=="")
			{	alert("Woops! You forgot to fill in your Phone .");
				phone.focus(); return false;
			}
		
		if(comments.value=="")
			{	alert("Woops! You forgot to fill in your Comments .");
				comments.focus(); return false;
			}*/
		
		
	}
document.getElementById("load_button").innerHTML='<img  src="http://gicexchange.ca/images/loading_quick.gif" alt="" />';
thisform.submit();
return false;
}

function checkMailId(mailids)
{
var val=false;
var email_validation=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
val=email_validation.test(mailids);
if(val==false)
{
	//alert("Your maild "+mai+" is not valid");
	alert("Woops! You have entered an invalid Email Address");
	return false;
}
else
{
	return true;
}
}

//-->

