// Common LRE functions // Finction Find Object function ob(o){if(document.getElementById){return document.getElementById(o)}else{return document.all[o]}} function cHid(ob,hd){ var forhide = hd.split(','); for (i=0; i< forhide.length; i++){ HB(forhide[i]); } DB(ob); } // Display in Blocks function DB(o){ ob(o).style.display="block";} // Hide Blocks function HB(o){ ob(o).style.display="none";} ////////////////// // Popup Functions function popUp(imgurl) { var pageWidth = 700; var pageHeight = 500; var args = "width=" + pageWidth + ",height=" + pageHeight + ",scrollbars,resizable"; var date = new Date(); var now = date.getTime(); var name = (now).toString(10); var url = "/preview.php?iid="+imgurl; window.open(url,name,args); } function popUpUrl(url) { var pageWidth = 500; var pageHeight = 400; var args = "width=" + pageWidth + ",height=" + pageHeight + ",scrollbars,resizable"; var date = new Date(); var now = date.getTime(); var name = (now).toString(10); window.open(url,name,args); } ////////////////////////// // Verification Functions function verify(msg) { return confirm(msg); } function Obj(ob){ if (document.getElementById) { FT = document.getElementById(ob) }else { FT = document.all[ob] } return FT; } function show(ob){ hideAll(); Obj(ob).style.display="block"; } function hideAll(){ Obj('mainContentDiv1').style.display="none"; Obj('mainContentDiv2').style.display="none"; Obj('mainContentDiv3').style.display="none"; } function checkEmail(val, type) { var error = ""; if (val == "" || val.length < 3) { error = "Please enter a valid '" + type + "' email address.\n"; } return error; } function verifyForm(theForm) { var why = ""; if (theForm.realname) { val = theForm.realname.value; if (val == "") { why += "Please enter a valid name.\n"; } } if (theForm.email) { why += checkEmail(theForm.email.value, 'from'); } if (theForm.recipient) { why += checkEmail(theForm.recipient.value, 'to'); } if (why != "") { alert(why); return false; } return true; } var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc) var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only if (document.getElementById){ //DynamicDrive.com change document.write('\n') } function SwitchMenu(e){ if (!e) var e = window.event; if (e.target) targ = e.target; else if (e.srcElement) targ = e.srcElement; if(targ.id){ var obj = targ.getElementsByTagName("a").item(0).href; var ele = targ.getElementsByTagName("a").item(0); }else{ var obj = targ.href; var ele = targ; } obj = obj.replace(/(.*?)#m/,""); //alert(obj); if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("menu").getElementsByTagName("div"); //DynamicDrive.com change var hr = document.getElementById("menu").getElementsByTagName("h2"); for(var a=0;a