function formvalid()
{

	//1 OrgName
	var on = document.form1.OrgName2.value; 
	 if (on.length<3 ) 
	 { alert ("Please Enter your < Organization Name > ");
	    document.form1.OrgName2.focus();
	    return false;
	  }
	
	//2 phone
	var digits="0123456789-+.,()"
		var OrgPhone2=document.form1.OrgPhone2.value;
	if(OrgPhone2=="")
	{	alert("Please enter your < Please Enter your < Phone >eg: 91-11-41638540 or 01141638540>");
		document.form1.OrgPhone2.focus();
		return false;
	}
	/*for (var i=0;i<document.form1.OrgPhone2.value.length;i++)
	{
	temp=document.form1.OrgPhone2.value.substring(i,i+1)
		if (digits.indexOf(temp)==-1)
		{
			alert("Please Enter Numerics Only")
			document.form1.OrgPhone2.focus();
			return false;
    	}
	}*/



	var cp = document.form1.CPerson2.value; 
	 if (cp.length<2 ) 
	  { alert ("Please Enter valid < Contact Person > ");
	    document.form1.CPerson2.focus();
	    return false;
	  }
	  //4 designation

	var cp = document.form1.Designation2.value; 
	 if (cp.length<2 ) 
	  { alert ("Please Enter valid < Designation > ");
	    document.form1.Designation2.focus();
	    return false;
	  }
	 	 //5 EmailAddress
 	var em = document.form1.Email2.value;
	if (em.length<6)
	{	alert ("Please Enter valid < EMAIL ID >\n (ex: support@vsworld.com) ");
		document.form1.Email2.focus();
		return false;
	}
	if ((em.indexOf("@")==-1) || (em.indexOf(".")==-1))
	{	alert ("Please Enter valid < EMAIL ID >\n (ex: support@vsworld.com) ");
		document.form1.Email2.focus();
		return false;
	}

	for (var i = 0; i < em.length; i++) 
	{	var ch = em.substring(i, i + 1);
		 if ((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)&& (ch != '@') && (ch != '_') && (ch != '.') && (ch < "0" || "9" < ch))  
     		{ 	alert ("Please Enter valid < EMAIL ID >\n (ex: support@vsworld.com) ");
			document.form1.Email2.focus();
			return false;
      		}

	}


	 
	  //6 Describes
var cp = document.form1.Describes2.options.selectedIndex; 
	 if (cp=="" ) 
	  { alert ("Please select your Company/Organization ");
	    document.form1.Describes2.focus();
	    return false;
	  }


	  //7 You Are
var cp = document.form1.YouAre2.options.selectedIndex; 
	 if (cp=="" ) 
	  { alert ("Please select You Are");
	    document.form1.YouAre2.focus();
	    return false;
	  }
	  
/*	  //3 Proj Name
	var pna = document.form1.ProjName2.value; 
	if ( pna.length<3 ) 
  	{	 alert ("Please Enter valid < Project Name >\n\nProject Name is one word description of your project.\n\nValid Project Name \n\nshould be more than 8 CHARACTERS and\nshould not contain any BLANK spaces");
   		 document.form1.ProjName2.focus();
    		return false;
  	}
	  
	  	  //8 Your annual estimated revenues
var cp = document.form1.Annual2.options.selectedIndex; 
	 if (cp=="" ) 
	  { alert ("Please select Please select Your annual estimated revenues");
	    document.form1.Annual2.focus();
	    return false;
	  }
	  
	  


	//3 Proj Name
	var pna = document.form1.ProjName.value; 
	if ( pna.length<3 ) 
  	{	 alert ("Please Enter valid < Project Name >\n\nProject Name is one word description of your project.\n\nValid Project Name \n\nshould be more than 3 CHARACTERS and\nshould not contain any BLANK spaces");
   		 document.form1.ProjName.focus();
    		return false;
  	}
*/


}//end form valid
function formvalid1()
{
	//4 Category
	var cat = document.form1.Category2.options.selectedIndex; 
	 if (cat==-1 ) 
	  { alert ("Please select < Category >\n\nThe Category details are loaded on Project Type List\n\nThen select the project type(s) you are looking for.");
	    document.form1.Category2.focus();
	    return false;
	  }

	//5 Proj Type
//	var pty = document.form1.ProjType2[0].value; 
//	alert(pty);
//	 if (document.form1.ProjType2[0].value=="") 
//	{}
//	 else
//	  { alert ("Please select < Project Type >\n\n For multiple selection \npress CTRL key and mouse select all the options required.");
//	    document.form1.ProjType2.focus();
//	    return false;
//	  }
}

function namevalid()
{	//4 Category
	var cat = document.form1.Category2.options.selectedIndex; 
	 if (cat==-1 ) 
	  { alert ("Please select < Category >\n\nThe Category details are loaded on Project Type List\n\nThen select the project type(s) you are looking for.");
	    document.form1.Category.focus();
	    return false;
	  }

	//5 Proj Type
	var pty = document.form1.ProjType2.options.selectedIndex; 
	 if (pty==-1 ) 
	  { alert ("Please select < Project Type >\n\n For multiple selection \npress CTRL key and mouse select all the options required.");
	    document.form1.ProjType.focus();
	    return false;
	  }
	



}//end form valid
///menu change start
 
var aa = new Array();
function MakeChoice(form) 
{
	var str="";
	var c;
	var strsub = "";
	var m = form.form.ProjType2.options.length;
	var strsub = new Array();
	var i = 0;
	for(var m1=0;m1<m;m1++) 
	{
		if (form.form.ProjType2.options[m1].selected == true) 
		{
			strsub[i++] = form.form.ProjType2.options[m1].value;
		}
		form.form.ProjType2.options[m1].selected = false;
	}

form.form.ProjType2.options.length = 0;
for(var i=0; i< form.form.Category2.options.length; i++) 
{
	if(form.form.Category2.options[i].selected) 
	{
		c = form.form.Category2.options[i].value;
		for(var k=1;k<aa.length;k++) 
		{
			var s = aa[k];
			var parts  = s.split(':');
			if(parts[0] == c && parts[0] != 0) 
			{
				var opt = new Option();
				opt.text=parts[1];
				opt.value=k;
				form.form.ProjType2.options[form.form.ProjType2.options.length] = opt;
			}
		}
	}
}

for(var i = 0; i< form.form.ProjType2.options.length;i++) 
{
	var v = form.form.ProjType2.options[i].value;
	for (var l = 0; l < strsub.length; l++) 
	{
		if(strsub[l] == v) 
		{
			form.form.ProjType2.options[i].selected = true;
		}
	}
}

}

function check3(form)
{
	c=0;
	for(var i=0; i< form.form.Category2.options.length; i++) 
	{
		if(form.form.Category2.options[i].selected) 
		{	c++;	}
	}
	if(c>3)
	{
		alert("Select 3 Categories !");	return false;
	}
}

function opensrch()
{
	window.open('/search/keywordtips.html','popup','width=450,height=350,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no');
}

aa[1] = '0:Net Applications'; 
aa[2] = '0:Media Promotion & Design'; 
aa[3] = '0:Other Customized Solutions'; 

//net appl
aa[4] = '1:Website Design and Development'; 
aa[5] = '1:Interactive and animated Flash sites'; 
aa[6] = '1:Interactive VR'; 
aa[7] = '1:E-Business Solutions'; 
aa[8] = '1:Supply Chain Management'; 
aa[9] = '1:Customer Relationship Mgmt (CRM)'; 
aa[10] = '1:Collaboration'; 
aa[11] = '1:Mobile/wireless applications'; 
aa[12] = '1:Streaming'; 
aa[13] = '1:Web Commercials'; 
aa[14] = '1:Web Hosting'; 
//media
aa[15] = '2:Webcast'; 
aa[16] = '2:Corporate Films'; 
aa[17] = '2:Ad\' Films'; 
aa[18] = '2:Educational Films'; 
aa[19] = '2:Design for Print Media'; 
//customized
aa[20] = '3:Interactive Database Application'; 
aa[21] = '3:KIOSK Development'; 
aa[22] = '3:Interactive VR Application'; 
aa[23] = '3:Corporate CD'; 

