function result(form)
	{
	if(!valuname())
		{
		document.form1.txtUserID.focus();
		return false;
		 }
	if(!valname())
		{ 
		document.form1.txtName.focus();
		return false; 
		}
	if(!valpass())
	{ 
		document.form1.txtPW.focus();
		return false;
	}
	if(!valcpass())
	{
		document.form1.txtCPW.focus();
		return false; 
	}
	if(!valckpass())
		{
		document.form1.txtCPW.value="";
		document.form1.txtPW.value="";
		document.form1.txtPW.focus();
		return false;
		}
	if(!valemail())
		{
		document.form1.txtEmail.focus();
		return false;
		}
	if(!valsex())
		{ 
		document.form1.drpGender.focus();
		return false; 	
		}
	if(!valage())
		{ 
		document.form1.drpAge.focus();
		return false; 
		}
	var ITaddr = document.form1.txtAddress.value;
	if (ITaddr == "")
		{
		alert("Enter your address!");
		document.form1.txtAddress.focus();
		return false; 
		}

	if(!valHOffice())
		{ 
		document.form1.drpHOffice.focus();
		return false; 
		}

	if(!valcity())
		{ 
		document.form1.drpCity.focus();
		return false; 
		}
	if(!valstate())
		{
		document.form1.drpState.focus();
		return false; 
		}
	var ITpin = document.form1.txtPin.value;
	if (ITpin == "")
		{
		alert("Specify postal code!");
		document.form1.txtPin.focus();
		return false; 
		}
	var ITphone = document.form1.txtPhone.value;
	if (ITphone == "")
		{
		alert("Specify phone number!");
		document.form1.txtPhone.focus();
		return false; 
		}
	if(ITphone.length > 49)
		{
		alert("phone no contains mores than 50 digits!");
		document.form1.txtPhone.focus();
		return false; 
		}
	if(!valWHear())
		{ 
		document.form1.drpWHear.focus();
		return false; 	
		}
	if(!valorg())
		{
		document.form1.txtOrg.focus();
		return false; 
		}
	if(!valorg_prof_stm())
		{ 
		document.form1.drpProfStream.focus();
		return false; 
		}
	if(!valorg_prof())
		{ 
		document.form1.drpProf.focus();
		return false; 
		}
	if(!valOPE())
		{ 
		document.form1.drpOwnProEnt.focus();
		return false; 
		}
	if(!valorg_level())
		{
		document.form1.drpOrgLevel.focus();
		return false; 
		}
	if(!valind_seg())
		{ 
		document.form1.ind_seg.focus();
		return false; 
		}
	if(!valpl_org())
		{ 
		document.form1.pl_org.focus();
		return false; 
		}
	var ITSpend = document.form1.drpTurnOver.value;
	if (ITSpend == "0")
		{
		alert("Select annual turnover of your company!");
		document.form1.drpTurnOver.focus();
		return false; 
		}
	var ITSpend = document.form1.rdoITSpend03_04.value;
	if (ITSpend == "0")
		{
		alert("Select average spend on IT for 2003-04!");
		document.form1.rdoITSpend03_04.focus();
		return false; 
		}

	var budget = document.form1.rdoBudgtAlloc04_05.value;
	if (budget == "0")
		{
		alert("Select Approximate budgetary allocation for 2004-05!");
		document.form1.rdoBudgtAlloc04_05.focus();
		return false; 
		}

	return true;
}

function valuname()
	{
	var n  =document.form1.txtUserID.value;
	if (n == "" || n==" ")
		{
	 	alert("Enter your User ID!");
		return false; 
		}
	return true; 
	}
function valpass()
	{
	var p = document.form1.txtPW.value;
	if (p == "" || p==" ")
		{ 
		alert("Select a Password");   
		return false; 
		}
	txtPW = document.form1.txtPW.value
	if(txtPW.length >10)
		{
		alert("Password should not be more than 10 characters")
		document.form1.txtPW.value="";
		return false;
		}
	return true;
	}
function valcpass()
	{
	var pc = document.form1.txtCPW.value;
	if (pc == "" || pc==" ")
		{
		alert("Enter Confirmation password");   
		return false; 
		}
	return true; 
	}

function valckpass()
	{
	var p = document.form1.txtPW.value;
	var pc = document.form1.txtCPW.value;
	if(p != pc)
		{
		alert("Your Password and Confirm Password does not match, do retype again"); 
		return false; 
		}
	return true; 
	}
function valname()
	{
	var n = document.form1.txtName.value;
	if (n == "" || n == " ")
		{
		alert("Enter your Name!");
		return false; 
		}
	if (n.length>49)
		{
		alert("Name should be less than 50 letters");
		return false; 
		}
	return true; 
	}
function valemail()
	{
	var e=document.form1.txtEmail.value;
	var count1=0
	var count2=0
	if(e=="" || e==" ")
		{
		alert("Enter your email ID");
		return false; 
		}
	for(var i=0; i<e.length;i++)
		{
		var ch=e.charAt(i)
		if(ch == "@")
			count1++;
		if(ch == ".")
			count2++; 
		}
	if ((count1 !=1) || (count2 < 1))
		{
		alert("Enter Correct email ID")
		return false;
		}
	return true; }
function valage()
	{
	 var a2=document.form1.drpAge.value;
	if(a2=="ag")
		{
		alert("Please select your Age!")
		return false; 
		}
	return true; 
	}
function valsex()
	{
	var a1=document.form1.drpGender.value;
	if(a1=="sx")
		{
		alert("Specify your Gender!")
		return false; 
		}
	return true; 
	}
function valWHear()
	{
	var har=document.form1.drpWHear.value;
	if(har=="har")
		{
		alert("Specify Where did you hear about CIOL SMB Forum?")
		return false; 
		}
	return true; 
	}
function valHOffice()
	{
	var hof1=document.form1.drpHOffice.value;
	if(hof1=="hof")
		{
		alert("Specify if the address mentioned\n is your Head office!")
		return false; 
		}
	return true; 
	}

function valcity()
{var cct = document.form1.drpCity.value;
var occt = document.form1.txtOthCity.value;
if(((cct=="ct")&&(occt==""))||(occt==" "))
{ alert("Specify which City!"); 
return false; }
return true; }

function valstate()
{var sst = document.form1.drpState.value;
var osst = document.form1.txtOthState.value;
if(((sst=="st")&&(osst==""))||(osst==" "))
{ alert("Specify which State!"); 
return false; }
return true; }

function valorg()
	{
	var o = document.form1.txtOrg.value;
	if (o.length == 0)
		{
		alert("Mention your Organisation!");
		return false; 
		}
	else if (o.length > 49)
		{
		alert("Organisation should be less than 50 letter!");
		return false; 
		}

	return true; 
	}
function valorg_prof_stm()
	{ 
	var ps=document.form1.drpProfStream.value;
	if(ps=="0")
		{
		alert("Please specify Professional Stream!")
		return false; 
		}
	return true; 
	}
function valorg_prof()
	{
	 var pr=document.form1.drpProf.value;
	if(pr.length == 0)
		{
		alert("Please specify your Designation!")
		return false; 
		}
	return true; 
	}

function valOPE()
{var ope1=document.form1.drpOwnProEnt.value;
	if(ope1=="ope")
		{alert("Specify if you are a\n Owner/Promoter/Entrepreneur!")
		return false; }
	return true; }

function valorg_level()
	{var ope1=document.form1.drpOwnProEnt.value;
	var ogl1=document.form1.drpOrgLevel.value;	
	if((ope1=="No")&&(ogl1=="ogl"))
		{alert("Specify level in organisation!")
		return false; }
	return true; }

function valind_seg()
	{ 
	var a3=document.form1.ind_seg.value;
	var a31=document.form1.ind_seg.value;
	if(a3=="0")
		{ 
		alert("Please select your Industry Segment!")
		return false; 
		}
	if(a31=="PM")
		{ 
		alert("Please select the relevant subcategory of this Industry Segment!")
		return false; 
		}
	return true; 
	}

function valpl_org()
	{
	 var plor=document.form1.pl_org.value;
	if(plor == "plo")
		{
		alert("Please specify No. of employees\n in your organisation!")
		return false; 
		}
	return true; 
	}
