<!--

var menuids=["navlist"]

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
		}
    ultags[t].parentNode.onmouseover=function(){

	this.getElementsByTagName("ul")[0].style.visibility="visible";

    }

    ultags[t].parentNode.onmouseout=function(){
        this.getElementsByTagName("ul")[0].style.visibility="hidden";
    }

    }
  }
}

/* hide show div */

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

/* yes no dialog */

function confirmSubmit() 
{
	var agree=confirm("Are you sure you want to delete this?");
	if (agree)
	return true ;
	else
	return false ;
}


/* mall search */

function checkform ( form )
{
  if (form.find.value == "" || form.find.value == "Search by Keyword") {
    alert( "Please enter a keyword in the textbox." );
    form.find.focus();
    return false ;
  }
    return true ;
}

function checkformdd ( form )
{
  if (form.model.value == "0") {
    alert( "Please choose a model." );
    form.model.focus();
    return false ;
  }
    return true ;
}


//-->
    
