function checkform(theform)
{
	if (theform.hdu_summary.value==null || theform.hdu_summary.value == "")
	{
		alert("The Summary field is empty");
		return false;
	}
		
	if (theform.hdu_category.value==0 )
	{
		alert("Please select a category");
		return false;
	}	
	
	if (theform.hdu_description.value==null || theform.hdu_description.value == "")
	{
		alert("The description field is empty");
		return false;
	}	


	return true;
}



function do_onload(){
var cookiecheck=window.get_cookie && get_cookie(window.location.pathname).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor", "background-color")
if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
var cookieparse=get_cookie(window.location.pathname).split("|")
var whichtab=cookieparse[0]
var tabcontentid=cookieparse[1]
expandcontent(tabcontentid, tabobjlinks[whichtab])
}
else
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload



