function validatefrm(t,secverify)
{
	var emailpat =/^(\".*\"|[A-Za-z0-9]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9]\w*(\.[A-Za-z0-9]\w*)+)$/;
	var matcharray = t.email.value.match(emailpat);

	if(t.name.value=="")
	{
		alert("Please specify your Name....");
		t.name.focus();
		return 0;
	}
    if (matcharray == null)
      { 
        alert("Invalid E-mail Id specified...");
		t.email.focus();
        return false;
      }
	  if(secverify==1)
	  	{
	Item = t.sectorname.selectedIndex; 
	Result1 = t.sectorname.options[Item].text; 

    if (Result1 == "---- Select ----") 
	{
		alert("Please specify your Sector Name....");
		t.sectorname.focus();
		return false;
	}
	}
	if(secverify==2)
  	{
		if(t.dkeyword.value=="")
		{
			alert("Please specify your desired Keyword....");
			t.dkeyword.focus();
			return 0;
		}
	Item = t.shortcode.selectedIndex; 
	Result1 = t.shortcode.options[Item].text; 

    if (Result1 == "--- Select ---") 
	{
		alert("Please specify Short Code you wish to opt....");
		t.shortcode.focus();
		return false;
	}
	}
	if(secverify==3)
  	{
		if(t.dqty.value=="" || (t.dqty.value>='a' && t.dqty.value<='z') || (t.dqty.value>='A' && t.dqty.value<='Z'))
		{
			alert("Please specify your Numeric desired Bulk SMS Quantity....");
			t.dqty.focus();
			return 0;
		}
		if(t.dcountry.value=="")
		{
			alert("Please specify your desired Bulk sms Target Country....");
			t.dcountry.focus();
			return 0;
		}
	}

	  if(secverify==4)
	  	{
	Item = t.sectorname.selectedIndex; 
	Result1 = t.sectorname.options[Item].text; 

    if (Result1 == "---- Select ----") 
	{
		alert("Please specify desired Sector Name for Support....");
		t.sectorname.focus();
		return false;
	}
	Item = t.severity.selectedIndex; 
	Result1 = t.severity.options[Item].text; 

    if (Result1 == "---- Select ----") 
	{
		alert("Please specify severity of issues faced for best of support....");
		t.severity.focus();
		return false;
	}
	}

	if(t.comments.value=="")
	{
		alert("Please specify your Comments/ Suggestions....");
		t.comments.focus();
		return 0;
	}
	  
	t.submit();
	return 1;
}

function MM_jumpMenu(targ,selObj,restore)
{ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function validatesms(t)
{

	if (t.name.value =="")
	{
		alert("Please specify your name...");
		k = 1;
		t.name.focus();
		return false;
	}

	if (t.smsmessage.value =="")
	{
		alert("Please type your message that you wish to add to our Collection!");
		t.smsmessage.focus();
		return false;
	}

    Item = t.mcat.selectedIndex; 
	Result = t.mcat.options[Item].text; 
	if(Result=="---- Select ----")
	{
		alert("Please specify Category of this Message...");
		t.mcat.focus();
		return false;
	}

    Item = t.msubcat.selectedIndex; 
	Result = t.msubcat.options[Item].text; 
	if(Result=="---- Select ----")
	{
		alert("Please specify Sub-Category of this Message...");
		t.msubcat.focus();
		return false;
	}
	t.submit();
	return true;
}

function validatetip(t)
{

	if (t.name.value =="")
	{
		alert("Please specify your name...");
		k = 1;
		t.name.focus();
		return false;
	}

	if (t.stocktip.value =="")
	{
		alert("Please type your Stock tip that you wish to share through us!");
		t.stocktip.focus();
		return false;
	}

	t.submit();
	return true;
}
