/*sanket*/
/*
if (document.all)
{
  // Internet Explorer 4+
 document.write '<link rel="stylesheet" href="drstyle.css" type="text/css">';
}
else if (document.layers)
{
  // Navigator 4
  alert("Netscape");
}
else
{
  // Other
  alert("Opera");
}
*/
function Go(){return}
//sanket
function deleteMe(me,val)
{
	if (val==me.value)
		me.value="";
}
function restore(ctl,val)
{
	if (ctl.value=="")
	  ctl.value=val;
}
function send(frm)
{ 

  if (frm.username.value=="Name" || frm.username.value=="") 
	{
		alert("Enter User Name!!");
		frm.username.value="";
		frm.username.focus();
		return ;
	}
  if (frm.email.value=="E-mail" || frm.email.value=="") 
	{
		alert("Enter email Id!!");
		frm.email.value="";
		frm.email.focus();
		return ;
	}

var testresults;
var str=frm.email.value;
/*var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
*/
/*sanket*/
var filter=/^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9]+)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;

if (filter.test(str))
	testresults=true;
else
{
	alert("Please input a valid email address!");
	frm.email.value="";
	frm.email.focus();
	return ;
}


//window.location="updates.php?usrrname="+frm.username.value+"&email="+frm.email.value;
locate="update.php?username="+frm.username.value+"&email="+frm.email.value;
window.open(locate,"","width=550,height=155,status=no,scrollbars=yes,resizable=no,location=no,menubar=no,toolbar=no,top=100,left=100");
frm.username.value="Name";
frm.email.value="E-mail";
 }

 function search(frm)
{ 
  if (frm.domain.value=="" ) 
	{
		alert("Enter Domain Name!!");
		frm.domain.value="";
		frm.domain.focus();
		return ;
	}
var ip = '<!--#echo var="REMOTE_ADDR"-->';
locate="search.php?domain="+frm.domain.value+"&select="+frm.select1.options[frm.select1.selectedIndex].value+"&ip="+ip;

url(locate);

//window.open(locate,"","width=550,height=155,status=no,scrollbars=yes,resizable=no,location=no,menubar=no,toolbar=no,top=100,left=100");

//window.open("http://dinpl.com/cgi-bin/cgi/samplechk-ccp.pl?domain="+frm.domain.value+"&tld="+frm.select.value,"","width=550,height=155,status=no,scrollbars=yes,resizable=no,location=no,menubar=no,toolbar=no,top=100,left=100");

 }
//sanket

function navigateH()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
      {
		document.write("<font size=5+ color=\"#CCCCCC\">Home</font>");
	  }
   else
	  {
    	document.write("<font class=bigNetscape color=\"#CCCCCC\">Home</font>");
	  }
}

function navigateB()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
      {
		document.write("<font size=5+ color=\"#CCCCCC\">Business Associates</font>");
	  }
   else
	  {
    	document.write("<font class=bigNetscape color=\"#CCCCCC\">Business Associates</font>");
	  }
}

function navigateS()
{
		   if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Support</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Support</font>");
			  }

}

function navigateW()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Whitepapers</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Whitepapers</font>");
			  }
}

function navigateF()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">FAQs</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">FAQs</font>");
			  }
}


function navigateP()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
		  {
			document.write("<font size=5+ color=\"#CCCCCC\"> Brand Host</font>");
		  }
	   else
		  {
			document.write("<font class=bigNetscape color=\"#CCCCCC\"> Brand Host</font>");
		  }
}

function navigateC()
{
 if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Colocation</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Colocation</font>");
			  }
}

function navigateDS()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Dedicated Web Servers</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Dedicated Web Servers</font>");
			  }
}

function navigateCM()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Corporate Mail</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Corporate Mail</font>");
			  }
}

function navigateDM()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Dedicated Mail Servers</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Dedicated Mail Servers</font>");
			  }
}

function navigateDIS()
{
if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Drushti Intranet Suite</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Drushti Intranet Suite</font>");
			  }
}

function navigateMDS()
{
		   if (navigator.userAgent.indexOf('MSIE') != -1)
			  {
				document.write("<font size=5+ color=\"#CCCCCC\">Managed Database Server</font>");
			  }
		   else
			  {
				document.write("<font class=bigNetscape color=\"#CCCCCC\">Managed Database Server</font>");
			  }

}
/////////////////////////////////
function navigate1()
{
if (navigator.userAgent.indexOf('Opera') != -1)     
{
document.write("<DIV STYLE=\"text-decoration:blink\" align=center><font color=red>Drushti is rated as one among the top 10 hosting companies in India.&nbsp;&nbsp;(Ref:webhosting.info).<br>Drushti is expanding it's operations to Middle East.</font><DIV>");

}
else if (navigator.userAgent.indexOf('MSIE') != -1)     
{ 
document.write("<MARQUEE BEHAVIOR=SCROLL Scrolldelay=\"200\" direction=left HEIGHT=15 WIDTH=430><font color=red>Drushti is rated as one among the top 10 hosting companies in India.&nbsp;&nbsp;(Ref:webhosting.info).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Drushti is expanding it's operations to Middle East.</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</MARQUEE>");
}
else
{
document.write("<DIV align=center><font color=red>Drushti is rated as one among the top 10 hosting companies in India.&nbsp;&nbsp;(Ref:webhosting.info).<br>Drushti is expanding it's operations to Middle East.</font></DIV>")
}


}

function navigate2()
{
if (navigator.userAgent.indexOf('Opera') != -1 || navigator.userAgent.indexOf('MSIE') != -1){
				document.write("<input type=\"text\" name=\"domain\" class=\"domin\" size=\"13\">");
				}
				else{
				document.write("<input type=\"text\" name=\"domain\" size=\"13\">");
				}
}


function showFirst(val)
{
var captionElement; 
captionElement = document.getElementById("first");
captionElement.style.display="none";
captionElement = document.getElementById("second");
captionElement.style.display="none";
captionElement = document.getElementById("third");
captionElement.style.display="none";
captionElement = document.getElementById("fourth");
captionElement.style.display="none";

if (val=='first')
	{
		captionElement = document.getElementById("first");
		captionElement.style.display="";
	}
else if(val=='second')
	{
		captionElement = document.getElementById("second");
		captionElement.style.display="";
	}
else if(val=='third')
	{
		captionElement = document.getElementById("third");
		captionElement.style.display="";
	}
else if(val=='fourth')
	{
		captionElement = document.getElementById("fourth");
		captionElement.style.display="";
	}
}

