// Copyright 2004 - 2009, Productive Technologies LLC
// 08/03/09 10:43

var OMCUrlRoot="http://OnMyCalendar.com/",OMCWuUrlRoot="http://whatsup.onmycalendar.com/";
function gid(S){return document.getElementById(S);}
function gidv(S){return document.getElementById(S).value;}
function dw(S){document.write(S);}
function setFocusOn(S){var HE=gid(S);if(HE)HE.focus();}
function getUrlArg(Nm){var US=location.search.replace(/&/g,"?").toUpperCase()+"?",x=US.indexOf("?"+Nm.toUpperCase());return(x<0)?"":location.search.substring(x+Nm.length+2,US.indexOf("?",x+1));}
function VHS(Sn,Force){var Elm=gid('VhSection'+Sn),isvis=(typeof(Force)!="undefined")?!Force:((Elm.style.display=="none")?false:true);Elm.style.display=((isvis)?"none":"block");if(gid('VhBtn'+Sn))gid('VhBtn'+Sn).innerHTML=((isvis)?"View":"Hide")+gid('VhBtn'+Sn).innerHTML.substring(4);if(!gid('VhState'))alert("Error: VHS: VhState does not exist");gid('VhState').value=gid('VhState').value.replace(new RegExp(","+Sn,"g"),"")+((isvis)?"":","+Sn);if(typeof VHSJarteList=="function")VHSJarteList(Sn);}
function VHSJarteStatus(Sn,RefSn,Fld){return(Sn==RefSn&&gid('VhSection'+RefSn).style.display!="none"&&gid(Fld).style.visibility!="hidden")}
function VHSInit(){var a=gid('VhState').value.split(/,/);for(var i=0;i<a.length;i++)if(a[i]>0)VHS(a[i],true);}
function postOnEnter(e,BtnName){if(window.event&&window.event.keyCode==13){event.returnValue=false;event.cancel=true;}else if(!(e&&e.which&&e.which==13)){return true;}__doPostBack(BtnName,"");return false;}

