function submitme(e)
{
	document.Form1.action="pollanswer.aspx";
	document.Form1.submit();
}

function img()
{
document.Form1.hideimg.value="<%=strimage1%>";
document.Form1.hidecaption.value="<%=strcaption1%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();

}
function img2()
{
document.Form1.hideimg.value="<%=strimage2%>";
document.Form1.hidecaption.value="<%=strcaption2%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();

}
function img3()
{
document.Form1.hideimg.value="<%=strimage3%>";
document.Form1.hidecaption.value="<%=strcaption3%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();

}
function img4()
{
document.Form1.hideimg.value="<%=strimage4%>";
document.Form1.hidecaption.value="<%=strcaption4%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();

}
function img5()
{
document.Form1.hideimg.value="<%=strimage5%>";
document.Form1.hidecaption.value="<%=strcaption5%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();

}

function img6()
{
document.Form1.hideimg.value="<%=strimage6%>";
document.Form1.hidecaption.value="<%=strcaption6%>";
document.Form1.target="_blank";
document.Form1.action="images.aspx"
document.Form1.submit();
}
	
	function startsearch(obj,e)
	{
		if(e.keyCode==13)
		{
			if(obj.value=="")
			{
				alert("No data in Search field");
				return false;
			}
			else
			{
			document.location.href="search.aspx?search="+obj.value;
			}
		}
		
	}
	
	function sendtip()
	{
		document.Form1.action="sendtip.aspx";
		document.Form1.submit();
		//alert("ff");
		//document.location.href="fullstory.aspx";
	}


		function CheckNumeric()
{
   // Get ASCII value of key that user pressed
   var key = window.event.keyCode;

   // Was key that was pressed a numeric character (0-9)?
   if ( key >= 65 && key < 122)
      return; // if so, do nothing
   else
      window.event.returnValue = null; // otherwise, 
	                               // discard character
}


function funchk()
{
    if (document.Form1.name.value=="")
    {
     alert("Please Enter Your Name")
     document.Form1.name.focus();
     return false;
    }
    else if (document.Form1.name.value!="")
    {
       if(document.Form1.email.value=="")
       {
            alert("Please Enter Your Email")
            document.Form1.email.focus();
            return false;
       }
       else if(document.Form1.email.value!="")
       {
           if (document.Form1.feedbackarea.value=="")
           {
               alert("Please Enter Your FeedBack")
               document.Form1.feedbackarea.focus();
               return false;
           }
       }

    }
    else
    {
        return true;
    }

}
		function echeck(str)
		 {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID");
		   return false;
		}

		else if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID");
		   return false;
		}

		else if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID");
		    return false;
		}

		else if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID");
		    return false;
		 }

		else if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID");
		    return false;
		 }

		else if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID");
		    return false;
		 }
		
		else if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID");
		    return false;
		 }
		else
		{
 		 return true;
 		}
	}

function ValidateForm(t)
{
	var emailID=t
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
		
		
		function subc()
		{
		var subname=document.Form1.Name.value;
		var mailval=document.Form1.mailid.value;
		document.Form1.sub.text=subname;
		document.Form1.comment.text=mailval;
		if(document.Form1.comment.text=="")
		{
		alert("Please Enter the Mail ID")
		}
		else
		{
		alert("Thanks For Your Feedback")
		}
		}
		
		function rich()
		{
		
		var varmail=document.Form1.email.value;
		document.Form1.mailid1.text=varmail;
		}
		
		function sendtip()
		{
		var tips=document.Form1.tip.value;
		if(document.Form1.tip.value=="")
		{
		alert("Please Enter The Tips");
		}
		else
		{
		alert("Thanks For Your Tips")
		}
		}
		function fun1()
		{
		var tips=document.Form1.tip.value;
		}
	   function funsend()
	   {
	   var tips=document.Form1.tip.value;
	   document.Form1.comment.text=tips;
	   
	   if(document.Form1.comment.text=="")
	   {
	   alert("Please enter the Feedback")
	   }
	   else
	   {
	   alert("Thanks for your Feedback ")
	   }
       }
       
		function validateforint(obj,event)
{
var keyCode=event.keyCode?event.keyCode:event.which?event.which:event.charCode;
if ((keyCode>=48 && keyCode<=57))
return true;
else
return false;
}
		
		
		
		function validate()
		{
	    if(document.Form1.title.value=="")
	    {
	    alert("Please Enter The Title")
	    }
	    else if(document.Form1.fname.value=="")
	    {
	    alert("Please Enter Your First Name")
	    }
	    }
		
		
       
       		
		function chkfun()
		{
	
		if(document.Form1.TEXTAREA1.value=="")
		{
		alert("Please Enter The Tips")
		}
		else
		{
		alert("Thank You")
		}
		}

