<!--
function changeeffect()
{

document.getElementById("bname").style.fontSize='14px';
document.getElementById("bname").style.backgroundImage='gradient.gif';

}
function changeeffect1()
{

document.getElementById("uname").style.fontSize='14px';
document.getElementById("bname").style.fontSize='10px';
document.getElementById("uname").style.backgroundImage='gradient.gif';

}
function num(Number) 
{
		
		var valid = "0123456789:-.+()"
		var ok = "yes";
		var temp;
		for (var i=0; i<Number.length; i++) 
		{
		temp = "" + Number.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if (ok == "no") 
		{
		alert("Invalid entry! Only numbers are accepted!");
		return false;

	   }
	return true;
}

function enterlogono(id)
	{
		if (id == '1') 
		{
			document.getElementById("uploadlogono").style.display='none';
			document.getElementById("uploadlogo").style.display='';
			
		

		}
		else
		{
			document.getElementById("uploadlogono").style.display='';
			document.getElementById("uploadlogo").style.display='none';
		
			
		}
			
	}


function showlogo(id)
	{
			
			
		if (id == '1') 
		{
			document.getElementById("uploadlogoans").style.display='none';
			document.getElementById("uploadlogo3").style.display='';
            document.getElementById("logoinf").style.display='';
            document.getElementById("logobreak").style.display='';			
		}
		else
		{
			if(id == 2)
			{
			     document.getElementById("uploadlogoans").style.display='none';
			     document.getElementById("uploadlogo3").style.display='none';
 			     document.getElementById("logoinf").style.display='none';
	             document.getElementById("logobreak").style.display='none';				 
			}
			else
			{
				document.getElementById("uploadlogoans").style.display='';
			    document.getElementById("uploadlogo3").style.display='none';
 		        document.getElementById("logoinf").style.display='';
 		        document.getElementById("logobreak").style.display='';				
			}
		}
	}
function ValidateEmail(Email)
	{
		var atCharPresent = false;
		var dotPresent = false;
		for ( var Idx = 0; Idx < Email.length; Idx++ )
		{
			if ( Email.charAt ( Idx ) == '@' )
				atCharPresent = true;
			if ( Email.charAt ( Idx ) == '.' )
				dotPresent = true;
		}
		if ( !atCharPresent || !dotPresent )
			return false;
		return true;
	}
function Validatehlink(strString)
	{

	    var blnResult = true;

		  if (strString.length == 0) return false;

		   for (i = 0; i < strString.length && blnResult == true; i++)
	      {
		      
		        if (strString.charAt(i)=='<')
		         {
		         	blnResult = false;
		         }
		          if (strString.charAt(i)=='>')
		         {
		         	blnResult = false;
		         }				

				 if (strString.indexOf("[/URL]") >= 0)
		         {
		         	blnResult = false;
		         }
		           if (strString.indexOf("[/url]") >= 0)
		         {
		         	blnResult = false;
		         }


	      }

	return blnResult;

	}

function checkvalidation()
{

if(document.getElementById('prlist')!=null){
        if (document.getElementById('package').value == '') {
            alert('Please Select a Product');
            document.getElementById('prlist').focus();
            return false;
        }
}
   
    if ((!(document.getElementById("isLogo1").checked)) && (!(document.getElementById("isLogo2").checked)) && (!(document.getElementById("isLogo3").checked)))
		{
			alert( "Please Select Company Logo option");
			
			return false;

		}	
		else
		{
				if(!(document.getElementById("isLogo1").checked))
				{
				
									
				}	
				else
				{
						if (document.getElementById("companylogono").value=="" && document.getElementById("companylogo").value=="")
						{
							alert( "Please Enter Value in one Option");
							document.getElementById("companylogono").focus();
							return false;
				
						}
						else
						{

if(document.inquiry.companylogo.value!='')
{ 
	var fileName=document.getElementById("companylogo").value;
		var ext;
		ext=fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
		if(fileName=='')
		{
			
		}
		else
		{

				if((ext=='.gif') || (ext=='.jpeg') || (ext=='.jpg')|| (ext=='.png'))
				{
				}
				else
				{
					alert('Please Choose only (.gif,.png,.jpeg,.jpg) files');
					return false;
				}
		}
							

}
									if(document.inquiry.companylogono.value!='')
								    {    
								    	
									  
										
											splitstring = document.inquiry.companylogono.value;
												if(splitstring.charAt ( 0 ) == ' ')
												{
													alert( "Please enter Email ");
													document.inquiry.companylogono.focus( );
													return (false);
												
												}
												else
												{
													if ( !ValidateEmail( document.inquiry.companylogono.value ) )
														{
															alert( "Invalid Email " + document.inquiry.companylogono.value );
															document.inquiry.companylogono.focus( );
															return false;
														}
													if (!Validatehlink(document.inquiry.companylogono.value))
														{
															alert( "Invalid Email " + document.inquiry.companylogono.value );
															document.inquiry.companylogono.focus( );
															return false;
														}
										
										
												}
										
									}
						}		
									
				}
				
				if(!(document.getElementById("isLogo3").checked))
				{
				
									
				}	
				else
				{
				
					if (document.inquiry.slogan.value=="")
					{
						alert( "Please Enter Slogan");
						
						return false;
			
					}
					else
					{
							splitstring = document.inquiry.slogan.value;
							if(splitstring.charAt ( 0 ) == ' ')
							{
								alert( "Please enter Slogan");
								document.inquiry.slogan.focus( );
								return (false);
							
							}
										
							if (!Validatehlink(document.inquiry.slogan.value))
								{
									alert( "Invalid Slogan " + document.inquiry.slogan.value );
									document.inquiry.slogan.focus( );
									return false;
								}
								
								
					}
					if (document.inquiry.logoname.value=="")
					{
						alert( "Please Enter logoname");
						
						return false;
			
					}
					else
					{
							splitstring = document.inquiry.logoname.value;
							if(splitstring.charAt ( 0 ) == ' ')
							{
								alert( "Please enter logoname");
								document.inquiry.logoname.focus( );
								return (false);
							
							}
										
							if (!Validatehlink(document.inquiry.logoname.value))
								{
									alert( "Invalid Slogan " + document.inquiry.logoname.value );
									document.inquiry.logoname.focus( );
									return false;
								}
								
								
					}
					if (document.inquiry.colorpreference.value=="")
					{
						alert( "Please Enter colorpreference");
						
						return false;
			
					}
					else
					{
							splitstring = document.inquiry.colorpreference.value;
							if(splitstring.charAt ( 0 ) == ' ')
							{
								alert( "Please enter colorpreference");
								document.inquiry.colorpreference.focus( );
								return (false);
							
							}
										
							if (!Validatehlink(document.inquiry.colorpreference.value))
								{
									alert( "Invalid Slogan " + document.inquiry.colorpreference.value );
									document.inquiry.colorpreference.focus( );
									return false;
								}
								
								
					}
				
				}
				
				
				

		
		}
	



 if(document.inquiry.txt_productsnservices.value=='')
    {    
    	alert( "Please enter Products and Services ");
		document.inquiry.txt_productsnservices.focus( );
		return (false);
	}
	else
	{    		
    		splitstring = document.inquiry.txt_productsnservices.value;  				
			
			if(splitstring.charAt ( 0 ) == ' ')
			{
				alert( "Please enter Products and Services ");
				document.inquiry.txt_productsnservices.focus( );
				return (false);
			
			}
			if ( !Validatehlink(document.inquiry.txt_productsnservices.value))
			{
				alert( "Invalid Products and Services " + document.inquiry.txt_productsnservices.value + + " Special symbol( < , > , [/URL] ) are not allowed.");
				document.inquiry.txt_productsnservices.focus( );
				return false;
			}
			
			
	}


   /* if ((!(document.getElementById("p1").checked)) && (!(document.getElementById("p2").checked))  && (!(document.getElementById("p3").checked))  && (!(document.getElementById("p4").checked)) )
		{
			alert( "Please Select Sell Products Online Option ");
			
			return false;

		}
	*/

	 if(document.inquiry.txt_website1.value=='')
	    { 
	    }	
	    else
	    {
	    	if ( !Validatehlink(document.inquiry.txt_website1.value))
			{				
		    	alert( "Please enter Valid Competitor Website1 ");
			
				return false;
			}
		}

		if(document.inquiry.txt_website2.value=='')
	    { 
	    }	
	    else
	    {
	    	if ( !Validatehlink(document.inquiry.txt_website2.value))
			{				
		    	alert( "Please enter Valid Competitor Website2 ");
			
				return false;
			}
		}

	 if ((!(document.getElementById("navigation1").checked)) && (!(document.getElementById("navigation2").checked)) && (!(document.getElementById("navigation3").checked)))
	{
		alert( "Please Choose Website Navigation ");
		
		return false;

	}


	 if(document.inquiry.txt_businessname.value=='')
    {    
    	alert( "Please enter Business Name ");
		document.inquiry.txt_businessname.focus( );
		return false;
	}
	else
	{    
		splitstring = document.inquiry.txt_businessname.value;
		if(splitstring.charAt ( 0 ) == ' ')
			{
				alert( "Please enter Business Name ");
				document.inquiry.txt_businessname.focus( );
				return false;
			
			}
			if ( !Validatehlink(document.inquiry.txt_businessname.value))
			{
				alert( "Invalid Business Name " + document.inquiry.txt_businessname.value );
				document.inquiry.txt_businessname.focus( );
				return false;
			}

	}

	if(document.inquiry.txt_Name.value=='')
    {    
    	alert( "Please enter Name ");
		document.inquiry.txt_Name.focus( );
		return false;
	}
	else
	{    
		splitstring = document.inquiry.txt_Name.value;
		if(splitstring.charAt ( 0 ) == ' ')
		{
			alert( "Please enter Name ");
			document.inquiry.txt_Name.focus( );
			return false;
		
		}
		if ( !Validatehlink(document.inquiry.txt_Name.value))
		{
			alert( "Invalid Name " + document.inquiry.txt_Name.value );
			document.inquiry.txt_Name.focus( );
			return false;
		}


		
	}
	if(document.inquiry.txt_Email.value=='')
    {    
    	alert( "Please enter Email ");
		document.inquiry.txt_Email.focus( );
		return false;
	}
	else
	{    
		splitstring = document.inquiry.txt_Email.value;
		if(splitstring.charAt ( 0 ) == ' ')
		{
			alert( "Please enter Email ");
			document.inquiry.txt_Email.focus( );
			return false;
		
		}
		else
		{
			if ( !ValidateEmail( document.inquiry.txt_Email.value ) )
				{
					alert( "Invalid Email " + document.inquiry.txt_Email.value );
					document.inquiry.txt_Email.focus( );
					return false;
				}
			if ( !Validatehlink(document.inquiry.txt_Email.value))
				{
					alert( "Invalid Email " + document.inquiry.txt_Email.value );
					document.inquiry.txt_Email.focus( );
					return false;
				}


		}
		
	}		
	
	if(document.inquiry.txt_Phone.value=='')
    {    
    	alert( "Please enter Contact No ");
		document.inquiry.txt_Phone.focus( );
		return false;
	}
	else
	{    
		splitstring = document.inquiry.txt_Phone.value;
		if(splitstring.charAt ( 0 ) == ' ')
		{
			alert( "Please enter Contact No ");
			document.inquiry.txt_Phone.focus( );
			return false;

		
		}
		if ( !Validatehlink(document.inquiry.txt_Phone.value))
		{
			alert( "Invalid Contact No" + document.inquiry.txt_Phone.value );
			document.inquiry.txt_Phone.focus( );
			return false;
		}
        if(!num(document.inquiry.txt_Phone.value))
        {
             document.inquiry.txt_Phone.focus();
             return false;
        }

		
	}
    if(document.getElementById("txtCountry").value=="")
    {
         alert("Please Select the Country");
         return false;
    }
			
	return true;	

}
	
	function showhear()
	{
	  if (document.getElementById("txt_hear").value=="others") 
		{
			document.getElementById("txtother").style.display='';
		}
		else
		{
			document.getElementById("txtother").style.display='none';
		}

	}
	function dispinfo(id)
	{
	  if (id==0) 
		{
			document.getElementById("pinfo").style.display='';
			

		}
		else
		{
			document.getElementById("pinfo").style.display='none';
			
		}

	}
	function disptr1(id)
	{
		if (id==0) 
		{
			document.getElementById("conwebsite").style.display='';
			document.getElementById("hoswebsite").style.display='';
			document.getElementById("reawebsite").style.display='none';

		}
		else
		{
			document.getElementById("conwebsite").style.display='none';
			document.getElementById("hoswebsite").style.display='none';
			document.getElementById("reawebsite").style.display='';
		}
	}
	function regdomain(id)
	{
		if (id==1) 
		{
			document.getElementById("registerdomain").style.display='';
			document.getElementById("domain").style.display='none';	
			document.getElementById("txt_website").lang='1';	
			document.getElementById("txt_registerdomain").lang='0';	
		}
		else
		{
			document.getElementById("registerdomain").style.display='none';
			document.getElementById("domain").style.display='';					
			document.getElementById("txt_website").lang='0';	
			document.getElementById("txt_registerdomain").lang='1';	
		}
		
	}	
	function showslogan(id)
	{
		if (document.getElementById("site_logo").value=="") 
		{
			document.getElementById("uploadlogo4").style.display='none';
			document.getElementById("uploadlogo5").style.display='none';
			document.getElementById("uploadlogo6").style.display='none';

			
		}
		else
		{
			document.getElementById("uploadlogo4").style.display='';
			document.getElementById("uploadlogo5").style.display='';
			document.getElementById("uploadlogo6").style.display='';

			
		}
	
	}

-->