function chkName(){
 if(document.LoginFrm.username.value==""){
	document.LoginFrm.username.value="username";
 }else if(document.LoginFrm.username.value=="username"){
	document.LoginFrm.username.value="";
 }
}

function chkPass(){
 if(document.LoginFrm.password.value==""){
	document.LoginFrm.password.value="password";
 }else if(document.LoginFrm.password.value=="password"){
	document.LoginFrm.password.value="";
 }
}

function chkSearch(){
 if(document.SearchFrm.modelsname.value==""){
	document.SearchFrm.modelsname.value="Enter Model's name here";
 }else if(document.SearchFrm.modelsname.value=="Enter Model's name here"){
	document.SearchFrm.modelsname.value="";
 }
}

function chkSearchOnSubmit(){
 with(document.SearchFrm)
 {
	if(	modelsname.value=="" ||
		modelsname.value=="Enter Model's name here")
	{//if there is no valid value
		return false;
	}
	else
	{
		return true;
	}
 }
}

function menu_rollover(rootURL,link)
{
	document.getElementById('tr_'+link).style.backgroundColor="#fdbe55";
	document.getElementById('a_'+link).style.color="#ffffff";
	document.getElementById('img_'+link).src=rootURL+"images/white.gif";
	document.getElementById('img_'+link).height=18;
}
function menu_rollout(rootURL,link)
{
	document.getElementById('tr_'+link).style.backgroundColor="#ffffff";
	document.getElementById('a_'+link).style.color="#f58053";
	document.getElementById('img_'+link).src=rootURL+"images/orange.gif";
	document.getElementById('img_'+link).height=5;
}

function confirmDelete(category,listnum,itemid)
{
	if(confirm("Do You want to delete "+category+" #"+listnum+"?"))
	{
		location.href="?action=delete&newsid="+itemid;
		return true;
	}
	return false;
}