var licurrentobjclass;
function liOver(thisobj, num) {
	var btns;
	btns = "rslt" + num;
	licurrentobjclass = thisobj.className;
	if (document.all) {							// IE 4/5
		thisobj.className = "mover " + licurrentobjclass.split(" ")[1];
		document.all[btns].style.display = "";
	} else if (document.getElementById) {		// NS6 or Firefox
		thisobj.className = "mover " + licurrentobjclass.split(" ")[1];
		document.getElementById(btns).style.display = "";
	}
}
function liOut(thisobj, num) {
	var btns;
	btns = "rslt" + num;
	if (document.all) {							// IE 4/5
		thisobj.className = licurrentobjclass;
		document.all[btns].style.display = "none";
	} else if (document.getElementById) {		// NS6 or Firefox
		thisobj.className = licurrentobjclass;
		document.getElementById(btns).style.display = "none";
	}
}
// Show Details for any LI
function liBtnShowDetail(num) {
	var btndivshow;
	var btndivhide
	var extrainfo;
	btndivshow = "ysdtlsbtnshow" + num;
	btndivhide = "ysdtlsbtnhide" + num;
	extrainfo = "rslt1details" + num;
	if (document.all) {	// IE 4/5
		if (document.all[btndivshow]) {
			document.all[btndivshow].style.display = "none";
			document.all[btndivhide].style.display = "";
			document.all[extrainfo].style.display = "";
			return true;
		} else {
			return false;
		}
	} else if (document.getElementById) {	// NS6 or Firefox
		if (document.getElementById(btndivshow)) {
			document.getElementById(btndivshow).style.display = "none";
			document.getElementById(btndivhide).style.display = "";
			document.getElementById(extrainfo).style.display = "";
			return true;
		} else {
			return false;
		}
	}
	return false;
}
function liBtnHideDetail(num) {
	var btndivshow;
	var btndivhide
	var extrainfo;
	btndivshow = "ysdtlsbtnshow" + num;
	btndivhide = "ysdtlsbtnhide" + num;
	extrainfo = "rslt1details" + num;
	if (document.all) {	// IE 4/5
		if (document.all[btndivshow]) {
			document.all[btndivshow].style.display = "";
			document.all[btndivhide].style.display = "none";
			document.all[extrainfo].style.display = "none";
			return true;
		} else {
			return false;
		}
	} else if (document.getElementById) {	// NS6 or Firefox
		if (document.getElementById(btndivshow)) {
			document.getElementById(btndivshow).style.display = "";
			document.getElementById(btndivhide).style.display = "none";
			document.getElementById(extrainfo).style.display = "none";
			return true;
		} else {
			return false;
		}
	}
	return false;
}

// ---------------------------------------------------------------------//
// Show & Hide Page Details
function HidePgDetails() {
  document.cookie = "SE=1;domain=.yahoo.com" ;
  if (document.all) {	// IE 4/5
		HidePgDetailsIMG.src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_off_sel.gif";
		ShowPgDetailsIMG.src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_on.gif";
		var i=1;
		while(liBtnHideDetail(i)) {i++;}
		//document.all["yspgtags"].style.display = "none";
	} else if (document.getElementById) {	// NS6 or Firefox
		document.getElementById("HidePgDetailsIMG").src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_off_sel.gif";
		document.getElementById("ShowPgDetailsIMG").src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_on.gif";
		var i=1;
		while(liBtnHideDetail(i)) {i++;}
		//document.getElementById("yspgtags").style.display = "none";
	}
}
function ShowPgDetails() {
  document.cookie = "SE=0;domain=.yahoo.com" ;
	if (document.all) {	// IE 4/5
		HidePgDetailsIMG.src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_off.gif";
		ShowPgDetailsIMG.src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_on_sel.gif";
		var i=1;
		while(liBtnShowDetail(i)) {i++;}
		document.all["yspgtags"].style.display = "";
	} else if (document.getElementById) {	// NS6 or Firefox
		document.getElementById("HidePgDetailsIMG").src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_off.gif";
		document.getElementById("ShowPgDetailsIMG").src="https://sec.yimg.com/us.yimg.com/i/us/sch/el/siteex_btn_page_details_on_sel.gif";
		var i=1;
		while(liBtnShowDetail(i)) {i++;}
		document.getElementById("yspgtags").style.display = "";
	}
}
// ---------------------------------------------------------------------//
// Expand/Collapse yellow box
function ExpandYellowBox() {
	if (document.all) {	// IE 4/5
		document.all["ystopexpboxadd"].style.display = "none";
		document.all["ystopexpboxfield"].style.display = "";
	} else if (document.getElementById) {	// NS6 or Firefox
		document.getElementById("ystopexpboxadd").style.display = "none";
		document.getElementById("ystopexpboxfield").style.display = "";
	}
}

function CollapseYellowBox() {
	if (document.all) {	// IE 4/5
		document.all["ystopexpboxadd"].style.display = "";
		document.all["ystopexpboxfield"].style.display = "none";
	} else if (document.getElementById) {	// NS6 or Firefox
		document.getElementById("ystopexpboxadd").style.display = "";
		document.getElementById("ystopexpboxfield").style.display = "none";
	}
}
function checkRegForm()
{
  $url = document.regForm.txtSiteUrl.value;
  if (($url == "")||($url == "http://")||($url.indexOf("?")>=0)) {
    alert("Please type in a valid URL");
    return false;
  }
  return true;
}
