function header(path){
	if(path==null)
		path= "./";
document.write('<table border="0" cellpadding="0" cellspacing="0" width="755" align="center"> <tr> <td  valign="top" width="76" ><a href="http://www.serversindia.net"><img name="top_r1_c1" src="'+path+'images/top_r1_c1.gif" border="0" alt="ServersIndia.Net Logo"></a></td> <td valign="bottom" ><font face="helviteca" size=6 color="#526BA7">SERVERSINDIA.NET PVT. LTD.</font><br><font face=verdana size=1>One stop shop for Domain Name Registration in India, Windows Hosting in India, Linux Hosting in India, E-mailing Solutions and Payment Gateway implementation. ServersIndia.net is hosting above 300 websites and provides complete and comprehensive Email, Domain Registration, Payment Gateway and Hosting Solutions, Cheap Web hosting, Cheap Linux hosting and Cheap Windows hosting.</td></tr></table>')
}


function toplinks(path){
	if(path==null)
		path= "./";
document.write('<table width="779"><tr><td align="center">  <!-- SiteSearch Google --><form method="get" action="http://www.serversindia.net/search_result.html" target="_top"><table border="0" bgcolor="#ffffff"><tr><td nowrap="nowrap" valign="top" align="left" height="32"><a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a></td><tdnowrap="nowrap"><input type="hidden" name="domains" value="www.serversindia.net"></input><input type="text" name="q" size="31" maxlength="255" value=""></input><input type="submit" name="sa" value="Search"></input></td></tr><tr><td>&nbsp;</td><td nowrap="nowrap"><table><tr><td><input type="radio" name="sitesearch" value=""></input><fontsize="-1" color="#000000">Web</font></td><td><input type="radio" name="sitesearch"value="www.serversindia.net" checked="checked"></input><font size="-1" color="#000000">www.serversindia.net</font></td></tr></table><input type="hidden" name="client"value="pub-0641096029648877"></input><input type="hidden" name="forid" value="1"></input><input type="hidden" name="channel" value="9136278857"></input><input type="hidden" name="ie" value="ISO-8859-1"></input><input type="hidden" name="oe" value="ISO-8859-1"></input><input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:F2984C;LC:F2984C;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11"></input><input type="hidden" name="hl" value="en"></input></td></tr></table></form><!-- SiteSearch Google --></td></tr></table><table width="779" align="center">');
document.write('<tr><td bgcolor="#FF8631" align="center"><font color=white><b>');
document.write('<a href="'+path+'index.html" class="panellinks">Home</a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'about-us/about-us.html" class="panellinks">About Us</a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'contact-us/contact-us.html" class="panellinks">Contact Us</a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'web-hosting-india/linux-hosting-plan.html" class="panellinks">Linux Hosting </a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'web-hosting-india/windows-hosting-plan.html" class="panellinks">Windows Hosting </a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'email-solutions-india/email-hosting.html" class="panellinks">E-Mail Hosting</a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'domain-registration-india/domain-registration.html" class="panellinks">Domain Name Registration</a> &nbsp;|&nbsp;');
document.write('<a href="'+path+'payment-gateway-solutions-india/payment-gateway.html"class="panellinks">Payment Gateway Solutions</a>&nbsp;|&nbsp;');
document.write('<a href="'+path+'hosting-query-india/query.html"class="panellinks">Query</a> | <br><A class=panellinks href="'+path+'personal-web-hosting/">Personal Web Hosting</A>| <A class=panellinks href="'+path+'unix-web-hosting/">Unix Web Hosting </A>| <A class=panellinks href="'+path+'ecommerce-web-hosting/">E-Commerce Web Hosting </A>| <A class=panellinks href="'+path+'frontpage-web-hosting/">FrontPage Web Hosting </A>| <A class=panellinks href="'+path+'asp-web-hosting/">ASP Web Hosting </A>| <A class=panellinks href="'+path+'shared-web-hosting/index.html">Shared Web Hosting </A>| <br><A class=panellinks href="'+path+'web-hosting-domain-name-registration/"> Web Hosting Domain Name Registration </A>| <A class=panellinks href="'+path+'dedicated-server-hosting/">Dedicated Server Hosting </A>|<A class=panellinks href="'+path+'small-business-web-hosting/"> Small Business Web Hosting </A>| <A class=panellinks href="'+path+'web-hosting-company/"> Web Hosting Company </A>| <A class=panellinks href="'+path+'windows-web-hosting/">Windows Web Hosting </A>| <br><A class=panellinks href="'+path+'ftp-web-hosting/">FTP Web Hosting </A>| <A class=panellinks href="'+path+'commercial-web-hosting/">Commercial Web Hosting </A>| <A class=panellinks href="'+path+'website-design-and-hosting/">Website Design and Hosting </A>| <A class=panellinks href="'+path+'php-webhosting/">PHP Web Hosting </A>| <A class=panellinks href="'+path+'private-domain-registration/">Private Domain Registration </A>| <A class=panellinks href="'+path+'web-space-hosting/">Web Space Hosting </A>');
document.write('</b></font></td></tr></table>');
}


function footer(path){
	if (path==null)
		path= "./";
document.write('<tr><td align=right><table><tr><td align=right><font size="1" face="Arial, Helvetica, sans-serif" color="#000033">Copyright &copy; 2009 <a href="http://www.serversindia.net">ServersIndia.Net Pvt. Ltd </a><br>C-62, Janak Community Center, Janakpuri, New Delhi-58 (India).<br>Tel : +91-11-41588012/13/14, 25542045, Fax : + 91-11-25547264</font><br><a href=\"http://www.infobase.co.in\"><font color=red face=arial size=1>www.infobase.co.in</font></a> &nbsp;&nbsp;<a href=\"http://www.allwonders.com\"><font color=red face=arial size=1> www.allwonders.com</font></b></td></tr></table></td></tr>');
}

function bottomlinks(path){
	

}


function pop(){ 
var reply = confirm("The Profile needs Macromedia Flash Plugin, If your browser have that plugin then click OK else click Cancel");
	if (reply == true) {
		window.open ("http://www.serversindia.net/html/profile2.html") ;
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function check(){
	var goodchars;
	goodchars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.-"


	str = document.form1.domain.value
	len = document.form1.domain.value.length

	if (str.indexOf(".") == -1) {
		alert ("This is not a valid domain Name. A domain name must contain a period (.)");
		document.form1.domain.focus();
		return false;
	}
	
	else
	{
		var NumberOfTimesDotAppears = 0;
		
		for(var i=0; i<len ; i++){
			if (goodchars.indexOf(str.charAt(i))==-1 ) {
				alert("Invalid Domain Name! A Domain Name can contain only Alphabets, Numbers, Period(.) and Hyphen (-)");
				document.form1.domain.focus()
				return false;
			}
			else if (str.charAt(i) == ".") {
				NumberOfTimesDotAppears = NumberOfTimesDotAppears + 1
			}
		}
		
		if (NumberOfTimesDotAppears > 1) {
			alert ('Invalid Domain Name! A domain name can not contain more than one Period (.)!');
			return false;
		}
		
		dotPosition = str.lastIndexOf(".") +1 
		domaini = ""
		for ( i=dotPosition;i<len;i++) {
			domaini = domaini + str.charAt(i)
		}

		if (domaini == 'org' || domaini == 'net' || domaini == 'com' ) 
		{
		return true
		}
		else
		{
		alert ("The domain name must contain 'net' , 'com' or 'org'")
		return false
		}
	}
}

function removeBlanks(sStr){
var sData = new String();	
	for (var i=0;i<sStr.length;i++)
		if ( sStr.charAt(i)!=' ')
			sData+=sStr.charAt(i);				
return sData;
}


/////////////////////////////////////////////////////////////////////
//THIS FUNTION CHECK FOR A VALID  EMAIL ADDRESS.
function isValidEmail(emailid) {
if (emailid == ""){
	return false; // because  it is not optional 
}
else{
		var eid=emailid;

		if (eid.indexOf(' ')!= -1){
			return false ; // no spaces
		} 
		if (eid.length < 6 ){
			return false ; // at least j.a@in
		}
		at=eid.indexOf('@', 0); //check from first position ---- 
		if ( at == -1 || at == 0){ //should not be at first place
			return false ;
		}else{
				var at1=eid.indexOf('@', (at + 1)); //looking for another at one place ahead
				if ( at1 == -1 ) // ie only one at is there
				{
					var dot=eid.indexOf('.',(at + 1));//looking for just next value
					if(dot == (at + 1)|| dot== -1){ //if dot is not there or in the next place
						return false ;	
						}
					else{
						 if ( (dot + 2 ) < eid.length )
							return true ;
						 else{
							return false ;
						}
					}
				}
				else // two @ are there
				{
					return false;
				}
			}	
	return false ;
	}		
}
////////THIS FUNCTION TRIMS THE TRAILING WHITE SPACES IN A GIVEN STRING.
function trim(str1){
// This function trims any given field value for blank spaces.
        var intCtr=0
        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);
        str1=str1.substring(intCtr,str1.length);
        return str1;    
}
function checkforchar(strdate){
//This function checks for string values
var validdate = ",.abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var strlength = strdate.length;
	for(var i=0; i<=strlength; i++)
	{
		var unitstr = strdate.substr(i,1);
		if (validdate.indexOf(unitstr)==-1)
		{
			return false;
		}
	}
	return true;
}

function checkforphone(str){
//This function checks for string values
var validdate = "0123456789()+ -";
var strlength = str.length;
	for(var i=0; i<=strlength; i++)
	{
		var unitstr = str.substr(i,1);
		if (validdate.indexOf(unitstr)==-1)
		{
			return false;
		}
	}
	return true;
}