

function GoHome()
{
	window.location="index.asp"
}

function GoFood()
{
	window.location="Food.asp"
}
function GoRest(AreaCode)
{
	window.location="Restaurants.asp?lstArea=" + AreaCode
}
function GoRestMenu(DlvRestCode)
{
	window.location="RestMenu.asp?DlvRestCode=" + DlvRestCode
}

function GoHelp()
{
	window.location="LiveHelp.asp"
}

function GoContatactus()
{
	window.location="ContactUs.asp"
}

function GoFAQ()
{
	window.location="FAQ.asp"
}

function GoAboutus()
{
	window.location="AboutUs.asp"
}

function GoAdvWithUS()
{
		window.location="AdvWithus.asp"
}

function GoSiteMap()
{
		window.location="SiteMap.asp"
}

function GoForGotPass()
{
		window.location="ForgotPassword.asp"
}
function GoPrivacy()
{
		window.location="Privacy.asp"
}


function rollInMenu(obj)
{
	obj.className="TopmenuRollIn"
} 

function rollOutMenu(obj)
{
	obj.className="Topmenu"
} 
function rollInDMenu(obj)
{
	obj.className="clsBottomMenuUd"
} 

function rollOutDMenu(obj)
{
	obj.className="clsBottomMenu"
} 


function rollInTRMenu(obj)
{
	obj.className="topRightMenuRollIn"
} 

function rollOutTRMenu(obj)
{
	obj.className="topRightMenu"
} 

function rollInNav(obj)
{
	obj.className="NavBarRollIn"
} 

function rollOutNav(obj)
{
	obj.className="NavBar"
} 

function rollInSpl(obj)
{
	obj.className="spllinksRollIn"
} 

function rollOutSpl(obj)
{
	obj.className="spllinks"
} 

function rollInSplLink(obj)
{
	obj.className="spllinksROver"
} 

function rollOutSplLink(obj)
{
	obj.className="spllinks"
}



function ChkNumeric()
{
	var Kc;
	Kc=window.event.keyCode
	
	 if( Kc<48 || Kc>57)
	 {


	 	window.event.returnValue = false;
	 }
}

function FormatNumber(expr, decplaces,minintplases) 
{

	var str = "" + Math.round(eval(expr) * Math.pow(10,decplaces));

	while (str.length < decplaces+minintplases) 
	{
		str = "0" + str;
	}
	
	
	var decpoint = str.length - decplaces;
	
	var retstr=str.substring(0,decpoint) + "." + str.substring(decpoint, str.length);

	return str.substring(0,decpoint) + "." + str.substring(decpoint, str.length);

} 


function window_onresize() {
if (navigator.appName=="Netscape")
{
	if(window.innerWidth>800)
	{
		document.getElementById("MainTab").style.posWidth=750
	}
	else 
	{
		if(window.innerWidth<650)
		{
			document.getElementById("MainTab").style.posWidth=600
		}
		else
		{
			document.getElementById("MainTab").style.posWidth=window.document.body.offsetWidth-50
		}
	}

}
else
{ 
	if(window.document.body.offsetWidth>800)
	{
		document.getElementById("MainTab").style.posWidth=750
	}
	else 
	{
		if(window.document.body.offsetWidth<650)
		{
			document.getElementById("MainTab").style.posWidth=600
		}
		else
		{
			document.getElementById("MainTab").style.posWidth=window.document.body.offsetWidth-50
		}
	}
}
}

//Edwin : To check pwd :dated: 2/10/2007
function pwdcheck(evntkey)
{
	// This checks the password for letters and numbers, On every Key entry
	var tmpval=0;
	var errorMsg='';
	var keyval = evntkey.charCode? evntkey.charCode : evntkey.keyCode;
	//alert(keyval);
	tmpval=String.fromCharCode(keyval); //Converting the ASCII code to Char
	if (!(tmpval.match(/^[0-9a-zA-Z]/))) { //RegExpression to Check numbers and letters
     errorMsg += "\nUse Only letters and number.\n";
	 alert(errorMsg);
	 return false;
	}

}

function pwdcheck2(pwdtxt)
{
	// This checks the password for letters and numbers, With the whole text
	var errorMsg='';
	var tmpval='';
	tmpval=pwdtxt; //Converting the ASCII code to Char
	if (!(tmpval.match(/^[0-9a-zA-Z]+$/))) { //RegExpression to Check numbers and letters
     errorMsg += "\nUse Only letters [a-z] and number[0-9].\n";
	 alert(errorMsg);
	 return false;
	}

}
//Edwin : To check pwd :dated: 2/10/2007

function echeck(str) {

		var at="@"
		var dot="."
		var str1;
		var lstr;
		// Edwin Code to Reomve the blank space in the email id >
		lstr=str.search(/\s/)
		if (lstr>0)  
			str=str.substring(0,lstr-1)
		else
			str=str
		// Edwin Code to Reomve the blanck space in the email id >
		var lat=str.indexOf(at)
		lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}
