// JavaScript Document
function contactValid1() {
var name= document.getElementById("name_ad").value;
var city= document.getElementById("cname_ad").value;
var refer= document.getElementById("mno_ad").value;
var email= document.getElementById("email_ad").value;
var subject= document.getElementById("subject_ad").value;

var theexp="^[a-z]([\\-_\\.]?[a-z0-9]+)*@([a-z0-9]+([\\-_][a-z0-9]+)*\\.)+[a-z]{2,}$";

document.getElementById('div_name_ad').innerHTML = "";
document.getElementById('div_company_ad').innerHTML = "";
document.getElementById('div_contact_ad').innerHTML = "";
document.getElementById('div_email_ad').innerHTML = "";
document.getElementById('div_subject_ad').innerHTML = "";

if(name==null || name=="")
	{
		document.getElementById('div_name_ad').innerHTML = 'Enter Name!';
		document.form_new.name_ad.focus();
		return false;
	}
if(city==null || city=="")
	{
		document.getElementById('div_company_ad').innerHTML = 'Enter City Name!';
		document.form_new.cname_ad.focus();
		return false;
	}
if(refer==null || refer=="")
	{
		document.getElementById('div_contact_ad').innerHTML = 'Enter Contact Number!';
		document.form_new.mno_ad.focus();
		return false;
	}
if(isNaN(refer)==true)
{
document.getElementById('div_contact_ad').innerHTML = 'Enter Valid Number!';
document.getElementById('mno_ad').value='';
document.form_new.mno_ad.focus();
return false;
}
if(email==null || email=="")
	{
		document.getElementById('div_email_ad').innerHTML = 'Enter Email!';
		document.form_new.email_ad.focus();
		return false;
	}
if(!(email.match(theexp)))
	{
		document.getElementById('div_email_ad').innerHTML = 'Enter valid E-Mail ID';
		document.getElementById('email_ad').value='';
		document.form_new.email_ad.focus();
		return false;
	}	
if(subject==null || subject=="")
	{
		document.getElementById('div_subject_ad').innerHTML = 'Enter Your Requirement!';
		document.form_new.subject_ad.focus();
		return false;
	}

return true;
}

function portfolio()
{
	$('#case_studies_w').showUp(500);
	$('#portfolio_w').showDown(500);
}
function case_studies()
{
	$('#portfolio_w').showUp(500);
	$('#case_studies_w').showDown(500);
}

function soa()
{
	location.href="soa.html";
}
function seo()
{
	$('#soa_w').showUp(500);
	$('#2d_w').showUp(500);
	$('#3d_w').showUp(500);
	$('#web_w').showUp(500);
	$('#seo_w').showDown(500);
}
function close_seo()
{
	$('#seo_w').showUp(500);
}
function close_case_studies() 
{
	$('#case_studies_w').showUp(500);
}
function close_portfolio() 
{
	$('#portfolio_w').showUp(500);
}

function iphone_wayfinder()
{
	location.href="interactive_wayfinder.html";
}


//


