function showBig(url, windowName, width, height)
{
  winB = window.open("solution_process.html",'winB',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winB.focus();
}

function showBig1(url, windowName, width, height)
{
  winC = window.open("methodology.html",'winC',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winC.focus();
}

function news1(url, windowName, width, height)
{
  winD = window.open("news1.html",'winD',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winD.focus();
}

function news2(url, windowName, width, height)
{
  winD = window.open("news2.html",'winD',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winD.focus();
}

function news3(url, windowName, width, height)
{
  winD = window.open("news3.html",'winD',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winD.focus();
}

function news4(url, windowName, width, height)
{
  winD = window.open("news4.html",'winD',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winD.focus();
}

function news5(url, windowName, width, height)
{
  winD = window.open("news5.html",'winD',"width="+Number(width+30)+",height="+Number(height+60)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= yes,navbar=no");
  winD.focus();
}




function chk()
{
	strMsg = "Please fill in the following fields\n before submitting the form:\n";
	strMsg += "-------------------------------------------------\n";
	f = 0;
	o = document.frm1
	if(o.client_name.value.length < 1) {f = 1; strMsg += "* Your Name\n";}
	if(o.client_businessname.value.length < 1) {f = 1; strMsg += "* Your Business Name\n";}
	if(checkEmail(o.client_email.value) == "0") {f = 1; strMsg += "* Your Email Address\n";}
	if(o.client_address.value.length < 1) {f = 1; strMsg += "* Your Address\n";}
	if(o.client_country.value.length < 1) {f = 1; strMsg += "* Country\n";}
	if(o.client_city.value.length < 1) {f = 1; strMsg += "* City\n";}
	if(o.client_phone.value.length < 1) {f = 1; strMsg += "* Phone\n";}
	if(o.client_url.value.length < 1) {f = 1; strMsg += "* URL\n";}
	if(o.client_pages.value.length < 1 || isNaN(o.client_pages.value) ) {f = 1; strMsg += "* Number of Pages\n";}
	if(o.client_budget.value.length < 1 || isNaN(o.client_budget.value)) {f = 1; strMsg += "* Budget\n";}
	if(o.other_detail.value.length < 1) {f = 1; strMsg += "* Other Project Details\n"}
	if(f==1) {
		alert(strMsg);
		return false;
	}
	else {
		return true;
		//o.submit();
	}
}

function chk1()
{
	strMsg = "Please fill in the following fields\n before submitting the form:\n";
	strMsg += "-------------------------------------------------\n";
	f = 0;
	o = document.frm1
	if(o.client_name.value.length < 1) {f = 1; strMsg += "* Your Name\n";}
	//if(o.client_businessname.value.length < 1) {f = 1; strMsg += "* Your Business Name\n";}
	if(checkEmail(o.client_email.value) == "0") {f = 1; strMsg += "* Your Email Address\n";}
	if(o.client_address.value.length < 1) {f = 1; strMsg += "* Your Adddress\n"}
	if(o.client_city.value.length < 1) {f = 1; strMsg += "* City\n";}
	if(o.client_pincode.value.length < 4 || isNaN(o.client_pincode.value) ) {f = 1; strMsg += "* Pin Code\n";}
	if(o.client_state.value.length < 1) {f = 1; strMsg += "* State\n";}
	if(o.client_country.value.length < 1) {f = 1; strMsg += "* Country\n";}
	if(o.client_phone.value.length < 1) {f = 1; strMsg += "* Phone\n";}
	//if(o.client_url.value.length < 1) {f = 1; strMsg += "* URL\n";}
	//if(o.client_pages.value.length < 1 || isNaN(o.client_pages.value) ) {f = 1; strMsg += "* Number of Pages\n";}
	//if(o.client_budget.value.length < 1 || isNaN(o.client_budget.value)) {f = 1; strMsg += "* Budget\n";}
	if(o.other_detail.value.length < 1) {f = 1; strMsg += "* Describe Profile\n"}
	if(f==1) {
		alert(strMsg);
		return false;
	}
	else {
		return true;
		//o.submit();
	}
}

function esol(case1,url)
{
  switch(case1)
	{
	  case 1:
		window.location.href=url;
	  break;
	  case 2:
		  window.location.href=url;
	  break;
	  case 3:
		  window.location.href=url;
	  break;
	  case 4:
		  window.location.href=url;
	  break;
	  case 5:
		  window.location.href=url;
	  break;
	  case 6:
		  window.location.href=url;
	  break;
	  case 7:
		  window.location.href=url;
	  break;
	  case 8:
		  window.location.href=url;
	  break;

		
	}
}

function checkEmail()
	{
	//	alert("Fired");
		//Returns "0" for invalid email address and "1" for valid
	
	var strEmail, strError, countAtRate, countDot, i;
	var checkAtRate, checkDot;
	var ValidChars,CountValidChars;
	ValidChars="abcdefghijklmnopqrstuvwxyz0123456789_.@ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
	strEmail = checkEmail.arguments[0];
	countAtRate=0;
	countDot=0;
	CountValidChars=0;
	if (strEmail.length >= 7)
		{
		for(i=0;i<strEmail.length;i++)
			{
			if(strEmail.charAt(i)=="@")
				countAtRate++;
			if(strEmail.charAt(i)==".")
				countDot++;
			CountValidChars=0;
			for(j=0;j<ValidChars.length;j++)
				{
				if(strEmail.charAt(i)==ValidChars.charAt(j))
					{
					CountValidChars++;
					}
				}
			if(CountValidChars==0)
				{
				strError=0;
				break;
				}
			}
		}
	checkAtRate=strEmail.indexOf("@",1);
	checkDot=strEmail.indexOf(".",1);
	for(i=1;i<countDot;i++)
		checkDot=strEmail.indexOf(".",checkDot+1);
	if(countAtRate==1 && countDot > 0 && strEmail.length >=7 && strError != 0)
		strError=1;
	else
		strError=0;
	if(checkDot>=strEmail.length-2)
		strError=0;
	if(strEmail.charAt(0)=="@" || strEmail.charAt(strEmail.length-1)=="@")
		strError=0;
	if(strEmail.charAt(0)=="." || strEmail.charAt(strEmail.length-1)==".")
		strError=0;
	if(checkDot < checkAtRate)
		strError=0;

	return strError;
	}

/*if(frm1.client_email.value!="")
		{
	
	var emailStr;
	emailStr=frm1.client_email.value;
	
var checkTLD=1;
alert("Ok---1");

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;



var emailPat=/^(.+)@(.+)$/;



var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";


var validChars="\[^\\s" + specialChars + "\]";


var quotedUser="(\"[^\"]*\")";


var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;


var atom=validChars + '+';


var word="(" + atom + "|" + quotedUser + ")";


var userPat=new RegExp("^" + word + "(\\." + word + ")*$");


var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");



var matchArray=emailStr.match(emailPat);

if (matchArray==null) {


alert("Email address seems incorrect (check @ and .'s)");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];


for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("Ths username contains invalid characters.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("Ths domain name contains invalid characters.");
return false;
   }
}


if (user.match(userPat)==null) {


alert("The username doesn't seem to be valid.");
return false;
}


var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {


for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destination IP address is invalid!");
return false;
   }
}
return true;
}

 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("The domain name does not seem to be valid.");
return false;
   }
}


if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("The address must end in a well-known domain or two letter " + "country.");
return false;
}


if (len<2) {
alert("This address is missing a hostname!");
return false;
}

return true;
}

if(error == 1)
	return false;
else 
	return true;
	}*/