function headerold(path)
{
if(path==null)
{
path= "./"
}
document.write('<table><tr><td width="76"><img src="'+path+'images/shim.gif" width="76" height="1" border="0" alt=" "></td><td width="323"><img src="'+path+'images/shim.gif" width="322" height="1" border="0" alt=" "></td>    <td width="356"><img src="'+path+'images/shim.gif" width="357" height="1" border="0" alt=" "></td><td width="1"><img src="'+path+'images/shim.gif" width="1" height="1" border="0" alt=" "></td></tr><tr><!-- row 1 --><td rowspan="2" valign="top" width="76"><img name="top_r1_c1" src="'+path+'images/top_r1_c1.gif" width="76" height="70" border="0" alt="ServersIndia.Net Logo" ></td><td rowspan="2" valign="top" width="323"><img name="top_r1_c2" src="'+path+'images/top_r1_c2.gif" width="322" height="70" border="0" alt="Serversindia.Net provides Web site Hosting, Web Education, Web Designing  &amp; Development, Online Certification, Shared &amp; Co-located Server, E-Commerce &amp; Mailing Solutions, Web related Queries etc."></td><td width="356"><form action="../servind/chkdomain" name="form1" onSubmit="return check()"><div align="center"><input name="domain" size=15><input alt="Click here To Check Domain Name Availibility" border=0 height=18 name=imageField src="'+path+'images/check.gif" type=image width=92 ></div></form><img src="'+path+'images/top_r2_c3.gif" width="357" height="16" border="0" alt=""></table>')
}

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" ><img name="top_r1_c1" src="'+path+'images/top_r1_c1.gif" border="0" alt="ServersIndia.Net Logo"></td> <td valign="bottom" ><font face="helviteca" size=6 color="#526BA7"> <b>SERVERSINDIA.NET PVT. LTD. </b></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.  </td></tr>  </table>')
}

function toplinks()
{
document.write('<table width="779" align="center"><tr><td bgcolor="#FF8631" align="center"> <font color="#ffffff"><a href="http://serversindia.net/about-us/about-us.html" class="bodylinks"><font color="#ffffff"> About Us</a> <font color="#ffffff"><b>|<font color="#ffffff"><a href="http://serversindia.net/contact-us/contact-us.html" class="bodylinks"><font color="#ffffff"> Contact Us</a> <font color="#ffffff"><b>|<font color="#ffffff"><a href="http://serversindia.net/web-hosting-india/linux-hosting-plan.html" class="bodylinks"><font color="#ffffff"> Linux Hosting </a> <font color="#ffffff"><b>|<font color="#ffffff"><a href="http://serversindia.net/web-hosting-india/windows-hosting-plan.html" class="bodylinks"><font color="#ffffff"> Windows Hosting </a> <font color="#ffffff"><b>| <a href="http://serversindia.net/email-solutions-india/email-solutions.html" class="bodylinks"><font color="#ffffff">E-Mail Solutions</a><font color="#ffffff"> <font color="#ffffff">  | <a href="http://serversindia.net/domain-name-registration/domain/serversindia_registerdomain.php" class="bodylinks"><font color="#ffffff">Domain Name Registration</a>  | <a href="http://serversindia.net/payment-gateway-solutions-india/payment-gateway.html"class="bodylinks"><font color="#ffffff">Payment Gateway Solutions</a> | <a href="http://serversindia.net/hosting-query-india/query.html"class="bodylinks"><font color="#ffffff">Hosting Query</a></b></td></tr></table>')
}

function footer()
{
document.write('<tr><td align=right><table><tr><td align=right><font size="1" face="Arial, Helvetica, sans-serif" color="#000033">Copyright © 2000-2007 <a href="http://serversindia.net">ServersIndia.Net Pvt. Ltd </a><br>C-62, Janak Community Center, Janakpuri, New Delhi-58 (India).<br>Tel : +91-11-25542045, 55453565 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 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
		}
	}
}



