var time="";
var today = new Date();
var year  = today.getYear();
if (year < 2000) year = year + 1900;
var month = today.getMonth() + 1;
var day  = today.getDate();
var hour = today.getHours();
var hourUTC = today.getUTCHours();
var diff = hour - hourUTC;
var hourdifference = Math.abs(diff);
var minute = today.getMinutes();
var minuteUTC = today.getUTCMinutes();
var minutedifference;
var second = today.getSeconds();
var timezone;
if (minute != minuteUTC && minuteUTC < 30 && diff < 0) { hourdifference--; }
if (minute != minuteUTC && minuteUTC > 30 && diff > 0) { hourdifference--; }
if (minute != minuteUTC) { minutedifference = ":30"; }
else { minutedifference = ":00"; }
if (hourdifference < 10) { timezone = "0" + hourdifference + minutedifference; }
else { timezone = "" + hourdifference + minutedifference; }
if (diff < 0) { timezone = "-" + timezone; }
else { timezone = "+" + timezone; }
if (month <= 9) month = "0" + month;
if (day <= 9) day = "0" + day;
if (hour <= 9) hour = "0" + hour;
if (minute <= 9) minute = "0" + minute;
if (second <= 9) second = "0" + second;
if(month=="01") { month="January"; }
if(month=="02") { month="February"; }
if(month=="03") { month="March"; }
if(month=="04") { month="April"; }
if(month=="05") { month="May"; }
if(month=="06") { month="June"; }
if(month=="07") { month="July"; }
if(month=="08") { month="August"; }
if(month=="09") { month="September"; }
if(month=="10") { month="October"; }
if(month=="11") { month="November"; }
if(month=="12") { month="December"; }
time = month + "  " + day + ",  " + year ;

function loginValidation(theForm)
{
   if (theForm.userid.value == "")
  {
    alert("Please enter the User Name.");
    theForm.userid.focus();
    return (false);
  }
   if (theForm.userid.value.length < 1)
  {
    alert("Please enter atleast 5 character in the 'Username' field.");
    theForm.userid.focus();
    return (false);
}  

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  var checkStr = theForm.userid.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only valid characters in the 'Username' field.");
    theForm.userid.focus();
    return (false);
    }

   if (theForm.password.value == "")
  {
    alert("Please enter the Password.");
    theForm.password.focus();
    return (false);
  }
   if (theForm.password.value.length < 1)
  {
    alert("Please enter atleast 3 characters in the Password field.");
    theForm.password.focus();
    return (false);
}  
return (true);
}




var x,y
var step=10
var flag=0

var message="Start Journey with a Single step "
message=message.split("")

var xpos=new Array()
for (i=0;i<=message.length-1;i++) { xpos[i]=-5 }

var ypos=new Array()
for (i=0;i<=message.length-1;i++) { ypos[i]=-5 }

function handlerMM(e)
{
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
	flag=1
}

function makesnake() 
{
	if (flag==1 && document.all) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step-12
		ypos[0]=y-17
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("span"+(i)+".style")
    		thisspan.posLeft=xpos[i]
			thisspan.posTop=ypos[i]
    	}
	}
	
	else if (flag==1 && document.layers) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
	
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("document.span"+i)
    		thisspan.left=xpos[i]
			thisspan.top=ypos[i]
    	}
	}
		var timer=setTimeout("makesnake()",20)
}

function setme()
{
window.status = "ss";
timer = setTimeout("setme()",  100);
}

document.cookie='search'+' = '+'';

function preloadImages() 
{ 
 
  var d=document;  if(d.images){ if(!d.imga) d.imga=new Array();
    var i, j=d.imga.length, a=preloadImages.arguments;  for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){  d.imga[j]=new Image; d.imga[j++].src=a[i]; }}
}

function wopen() { window.open("http://www.skyinfonet.com",""); }