function ShowGMap(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=550');");}
function ShowVPD(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL+'&subw=1', '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=640');");}
function showCalendarFromTP(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=950,height=760');");}
function Calpop(URL){day=new Date();id=day.getTime();if($("#sync_location").attr("checked")){URL=URL.substr(10);URL='/include/multisite/control/MultisiteSyncAndForward.asp'+URL;}
eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=950,height=789');");}
function buildCalPopURL(lid,stateid,countryid){var url="CalPop.asp?LID="+lid+"&Region=&StateID="+stateid+"&countryID="+countryid+"&Regn=&start_day=<%= day(now())%>&start_month=<%= month(now()) %>&start_year=<%= year(now()) %>&start_hr=8&start_min=0&start_ampm=am&periodhours=1&periodminutes=0&attendees=1&starttime=8&ChkAvl=&jtt=y"
Calpop(url);}
function buildStartAgainHTML(){var html="";html="<img src='/images/multisite/warning_icon.gif' class='ImpromptuImgIconWarning'/>If you click OK any locations connected to this booking will be removed.";return html}
$(function(){var delid=-1;var delname="";var dellink1,dellink2;$("a.multisite_btn_start_again").click(function(){$.prompt(buildStartAgainHTML(),{opacity:0,persistent:false,buttons:{Cancel:false,Ok:true},focus:0,submit:function(v,m,f){if(!v)return true;else
window.location="bookvc.asp?StartAgain=True";}});});});eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.1g.1w=6(o){o=$.1f({r:n,x:n,N:n,17:q,J:n,L:1a,16:n,y:q,u:12,H:3,B:0,k:1,K:n,I:n},o||{});8 G.R(6(){p b=q,A=o.y?"15":"w",P=o.y?"t":"s";p c=$(G),9=$("9",c),E=$("10",9),W=E.Y(),v=o.H;7(o.u){9.1h(E.D(W-v-1+1).V()).1d(E.D(0,v).V());o.B+=v}p f=$("10",9),l=f.Y(),4=o.B;c.5("1c","H");f.5({U:"T",1b:o.y?"S":"w"});9.5({19:"0",18:"0",Q:"13","1v-1s-1r":"S","z-14":"1"});c.5({U:"T",Q:"13","z-14":"2",w:"1q"});p g=o.y?t(f):s(f);p h=g*l;p j=g*v;f.5({s:f.s(),t:f.t()});9.5(P,h+"C").5(A,-(4*g));c.5(P,j+"C");7(o.r)$(o.r).O(6(){8 m(4-o.k)});7(o.x)$(o.x).O(6(){8 m(4+o.k)});7(o.N)$.R(o.N,6(i,a){$(a).O(6(){8 m(o.u?o.H+i:i)})});7(o.17&&c.11)c.11(6(e,d){8 d>0?m(4-o.k):m(4+o.k)});7(o.J)1p(6(){m(4+o.k)},o.J+o.L);6 M(){8 f.D(4).D(0,v)};6 m(a){7(!b){7(o.K)o.K.Z(G,M());7(o.u){7(a<=o.B-v-1){9.5(A,-((l-(v*2))*g)+"C");4=a==o.B-v-1?l-(v*2)-1:l-(v*2)-o.k}F 7(a>=l-v+1){9.5(A,-((v)*g)+"C");4=a==l-v+1?v+1:v+o.k}F 4=a}F{7(a<0||a>l-v)8;F 4=a}b=12;9.1o(A=="w"?{w:-(4*g)}:{15:-(4*g)},o.L,o.16,6(){7(o.I)o.I.Z(G,M());b=q});7(!o.u){$(o.r+","+o.x).1n("X");$((4-o.k<0&&o.r)||(4+o.k>l-v&&o.x)||[]).1m("X")}}8 q}})};6 5(a,b){8 1l($.5(a[0],b))||0};6 s(a){8 a[0].1k+5(a,\'1j\')+5(a,\'1i\')};6 t(a){8 a[0].1t+5(a,\'1u\')+5(a,\'1e\')}})(1x);',62,96,'||||curr|css|function|if|return|ul|||||||||||scroll|itemLength|go|null||var|false|btnPrev|width|height|circular||left|btnNext|vertical||animCss|start|px|slice|tLi|else|this|visible|afterEnd|auto|beforeStart|speed|vis|btnGo|click|sizeCss|position|each|none|hidden|overflow|clone|tl|disabled|size|call|li|mousewheel|true|relative|index|top|easing|mouseWheel|padding|margin|200|float|visibility|append|marginBottom|extend|fn|prepend|marginRight|marginLeft|offsetWidth|parseInt|addClass|removeClass|animate|setInterval|0px|type|style|offsetHeight|marginTop|list|jCarouselLite|jQuery'.split('|'),0,{}));if(bookvc.actionIsEmptyTest1==true){function setextraoptions(OnOff){return;if(OnOff==0){var LNavSearchOptions_Style=document.getElementById("LNavSearchOptions").style;LNavSearchOptions_Style.display="";var LNavSearchOptionsOff_Style=document.getElementById("LNavSearchOptionsOff").style;LNavSearchOptionsOff_Style.display="block";var LNavSearchOptionsOn_Style=document.getElementById("LNavSearchOptionsOn").style;LNavSearchOptionsOn_Style.display="none";}
if(OnOff==1){var LNavSearchOptions_Style=document.getElementById("LNavSearchOptions").style;LNavSearchOptions_Style.display="block";var LNavSearchOptionsOff_Style=document.getElementById("LNavSearchOptionsOff").style;LNavSearchOptionsOff_Style.display="none";var LNavSearchOptionsOn_Style=document.getElementById("LNavSearchOptionsOn").style;LNavSearchOptionsOn_Style.display="block";}}
function setsearchfields_A(){return;if(document.form1.ZipSearch.checked==true){document.form1.kw.value="";document.form1.StateID.selectedIndex=0;document.form1.keyword.selectedIndex=0;if(document.getElementById){var style5=document.getElementById("CityStyle1").style;style5.display="none";}
else if(document.all){var style5=document.all["CityStyle1"].style;style5.display="none";}
else if(document.layers){var style5=document.layers["CityStyle1"].style;style5.display="none";}
if(document.getElementById){var style3=document.getElementById("StateStyle1").style;style3.display="none";}
else if(document.all){var style3=document.all["StateStyle1"].style;style3.display="none";}
else if(document.layers){var style3=document.layers["StateStyle1"].style;style3.display="none";}}
else
{if(document.form1.g.checked==true){document.form1.kw.value="";document.form1.kw.style.background="#FFFFFF";document.form1.kw.style.border="1px solid #7f9db9";document.form1.kw.style.padding="1px";document.form1.CountryID.style.background="#FFFFFF";document.form1.StateID.style.background="#FFFFFF";document.form1.keyword.style.background="#FFFFFF";document.form1.CountryID.style.color="#000000";document.form1.StateID.style.color="#000000";document.form1.keyword.style.color="#000000";myObj=document.getElementById("CityStyle1");myObj.style.color="#003082";myObj=document.getElementById("StateStyle1");myObj.style.color="#003082";myObj=document.getElementById("CountryStyle1");myObj.style.color="#003082";if(document.form1.CountryID.selectedIndex==0){myObj=document.getElementById("styleGS_B");myObj.style.color="#003082";}else{myObj=document.getElementById("styleGS_B");myObj.style.color="#AAAAAA";}}else{document.form1.CountryID.style.background="#FFFFFF";document.form1.StateID.style.background="#FFFFFF";document.form1.keyword.style.background="#FFFFFF";document.form1.kw.style.background="#FFFFFF";document.form1.kw.style.border="1px solid #7f9db9";document.form1.CountryID.style.color="#000000";document.form1.StateID.style.color="#000000";document.form1.keyword.style.color="#000000";myObj=document.getElementById("CityStyle1");myObj.style.color="#003082";myObj=document.getElementById("StateStyle1");myObj.style.color="#003082";myObj=document.getElementById("CountryStyle1");myObj.style.color="#003082";myObj=document.getElementById("styleGS_B");myObj.style.color="#003082";}}}
function getFlashMovieObject(movieName)
{if(window.document[movieName])
{return window.document[movieName];}
if(navigator.appName.indexOf("Microsoft Internet")==-1)
{if(document.embeds&&document.embeds[movieName])
return document.embeds[movieName];}
else
{return document.getElementById(movieName);}}
function SendDataToFlashMovie(val)
{var flashMovie=getFlashMovieObject("FlashMap");flashMovie.SetVariable("GoogleSearch",val);}
function setsearchfields(){return;if(document.form1.g.checked==true){SendDataToFlashMovie("Y");if(document.form1.kw.value.length==0){document.form1.kw.style.background="#FFFFFF";document.form1.kw.style.border="1px solid #7f9db9";document.form1.kw.style.padding="1px";document.form1.CountryID.style.background="#FFFFFF";document.form1.StateID.style.background="#FFFFFF";document.form1.keyword.style.background="#FFFFFF";document.form1.CountryID.style.color="#000000";document.form1.StateID.style.color="#000000";document.form1.keyword.style.color="#000000";myObj=document.getElementById("CityStyle1");myObj.style.color="#003082";myObj=document.getElementById("StateStyle1");myObj.style.color="#003082";myObj=document.getElementById("CountryStyle1");myObj.style.color="#003082";if(document.form1.CountryID.selectedIndex!=0){myObj=document.getElementById("styleGS_B");myObj.style.color="#AAAAAA";}}else{document.form1.kw.style.background="#FFFFFF";document.form1.kw.style.border="1px solid #7f9db9";document.form1.kw.style.padding="1px";document.form1.CountryID.style.background="#FFFFFF";document.form1.CountryID.selectedIndex=0;document.form1.StateID.style.background="#FFFFFF";document.form1.StateID.selectedIndex=0;document.form1.keyword.style.background="#FFFFFF";document.form1.keyword.selectedIndex=0;document.form1.CountryID.style.color="#AAAAAA";document.form1.StateID.style.color="#AAAAAA";document.form1.keyword.style.color="#AAAAAA";myObj=document.getElementById("CityStyle1");myObj.style.color="#AAAAAA";myObj=document.getElementById("StateStyle1");myObj.style.color="#AAAAAA";myObj=document.getElementById("CountryStyle1");myObj.style.color="#AAAAAA";myObj=document.getElementById("styleGS_B");myObj.style.color="#4D6704";}}else{SendDataToFlashMovie("N");document.form1.CountryID.style.background="#FFFFFF";document.form1.StateID.style.background="#FFFFFF";document.form1.keyword.style.background="#FFFFFF";document.form1.kw.style.background="#FFFFFF";document.form1.kw.style.border="1px solid #7f9db9";document.form1.kw.style.padding="1px";document.form1.CountryID.style.color="#000000";document.form1.StateID.style.color="#000000";document.form1.keyword.style.color="#000000";myObj=document.getElementById("CityStyle1");myObj.style.color="#003082";myObj=document.getElementById("StateStyle1");myObj.style.color="#003082";myObj=document.getElementById("CountryStyle1");myObj.style.color="#003082";myObj=document.getElementById("styleGS_B");myObj.style.color="#003082";}}
var map=null;var geocoder=null;function initialize(){if(GBrowserIsCompatible()){geocoder=new GClientGeocoder();}}
function geoCodeAddress(address, event, geoLatLongField) {

    if (address != '') {

        if (geocoder) {
            geocoder.getLatLng(
					      address,
					      function (point) {
					          if (!point) {
					              alert(address + " not found");
					              event.preventDefault();
					          } else {
					              geoLatLongField.val(point);
					              document.form1.submit();
					          }
					      }
					    );
        } else {
            //alert("NO!");
        }
    }
}
function showAddress(domElm){var kw,searchForm=document.form1;if(searchForm.kw&&searchForm.kw.value){kw=document.form1.kw.value;}else{if(domElm&&document.getElementById(domElm)){kw=document.getElementById(domElm).value;}}
var address=kw;if(address!=''){if(geocoder){geocoder.getLatLng(address,function(point){if(!point){alert(address+" not found");}else{document.form1.gll.value=point;document.form1.submit();}});}else{}}else{document.form1.submit();}}
function lnavchange(){if(document.form1.g.checked==true){var Ast="";var Bst="block";var Cst="";}
else
{var Ast="block";var Bst="";var Cst="block";}}}
if(bookvc.sessionTypeTest1==true){function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}
function changeImages(){if(document.images&&(preloadFlag==true)){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1];}}}
var preloadFlag=false;function preloadImages(){if(document.images){bottom_testim_02_over=newImage("images/bottom_testim_02-over.gif");preloadFlag=true;}}}
if(bookvc.actionIsEmptyTest2==true){function CreditCardPopup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=512');");}}
if(bookvc.sessionTypeTest2==true){function jumpsys(){selsys=document.signup.selectedPCity.options[document.signup.selectedPCity.selectedIndex];if(selsys.value=="EU")
{window.location="http://www.whygo.eu/bookvc.asp?exemptredirect=Y";}
if(selsys.value=="US")
{window.location="http://www.whygo.us/bookvc.asp?exemptredirect=Y";}
if(selsys.value=="AU")
{window.location="http://www.whygo.com.au/bookvc.asp?exemptredirect=Y";}}}
if(bookvc.actionIsViewrooms==true){function setTelepresenceConnDetails(){if(document.getElementById("telepresenceOwnDetails").checked){document.getElementById("vcConnDetails").style.display='block';document.getElementById("CallFromBridge").selected=true;DialDetail();document.getElementById("UseOwnBridgeDetails").checked=true;setbridge();}else{document.getElementById("vcConnDetails").style.display='none';document.getElementById("CallFromBridge").selected=false;}}
function buildTransSpeedList(type,limit)
{var loop=limit;var isdnOpts=new Array("UNKNOWN","128kbps","256kbps","384kbps","512kbps");var ipOptions=new Array("UNKNOWN","384kbps","512kbps","768kbps","1Mbps","2Mbps");var loopArr=new Array();if(type=='IP')loopArr=ipOptions;else loopArr=isdnOpts;for(i=0;i<=loop;i++){var opt=document.createElement('option');opt.text=loopArr[i];opt.value=loopArr[i];var opt2=document.createElement('option');opt2.text=loopArr[i];opt2.value=loopArr[i];var opt3=document.createElement('option');opt3.text=loopArr[i];opt3.value=loopArr[i];var opt4=document.createElement('option');opt4.text=loopArr[i];opt4.value=loopArr[i];try{document.Form3.transspeed.add(opt,null);document.getElementById("farSiteTransSpeed").add(opt2,null);document.getElementById("dialingTransSpeed").add(opt3,null);document.getElementById("bridgeTransSpeed").add(opt4,null);}catch(ex){document.Form3.transspeed.add(opt);document.getElementById("farSiteTransSpeed").add(opt2);document.getElementById("dialingTransSpeed").add(opt3);document.getElementById("bridgeTransSpeed").add(opt4);}}}
function emptyTransSpeedList(){document.Form3.transspeed.options.length=0;document.getElementById("farSiteTransSpeed").options.length=0;document.getElementById("dialingTransSpeed").options.length=0;document.getElementById("bridgeTransSpeed").options.length=0;}
function setMaximumTransSpeed(ISDN_LIMIT,IP_LIMIT){iporisdn=document.Form3.IPorISDN;if(iporisdn.options[iporisdn.selectedIndex].value=="IP"){emptyTransSpeedList();buildTransSpeedList("IP",IP_LIMIT);}else if(iporisdn.options[iporisdn.selectedIndex].value=="ISDN"){emptyTransSpeedList();buildTransSpeedList("ISDN",ISDN_LIMIT);}else{emptyTransSpeedList();buildTransSpeedList("other",4);}}
function SetCurr1(){document.Form3.action.value="viewrooms";Form3.submit()}
function webconfpopup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=400');");}
function SetCurr1(){document.Form3.action.value="viewrooms";Form3.submit()}
function explainpop(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=400');");}
function selectDialDetail(){document.Form3.CallFrom.selectedIndex=1;document.Form3.IPorISDN.selectedIndex=1;document.Form3.transspeed.selectedIndex=3;DialDetail();}
function SetCurr1(){document.Form3.action.value="viewrooms";Form3.submit()}
function setbridge(){var SBchecked0=document.Form3.DD_BridgeType[0].checked;var SBchecked1=document.Form3.DD_BridgeType[1].checked;if(document.getElementById){var style1=document.getElementById("Bridge1").style;var style2=document.getElementById("Bridge2").style;if(SBchecked0){style1.display="block";style2.display="";}
if(SBchecked1){style1.display="";style2.display="block";}}
else if(document.all){var style1=document.all["Bridge1"].style;var style2=document.all["Bridge2"].style;if(document.Form3.DD_BridgeType.selectedIndex==0){style1.display="block";style2.display="";}else{style1.display="";style2.display="block";}}
else if(document.layers){var style2=document.layers["Bridge1"].style;var style2=document.layers["Bridge2"].style;if(document.Form3.DD_BridgeType.selectedIndex==0){style1.display="block";style2.display="";}else{style1.display="";style2.display="block";}}}
function SetCFB(element){if(document.getElementById){var style2=document.getElementById(element).style;if(document.Form3.CallFrom.selectedIndex==2){style2.display="block";}else{style2.display="";}}
else if(document.all){var style2=document.all[element].style;if(document.Form3.CallFrom.selectedIndex==2){style2.display="block";}else{style2.display="";}}
else if(document.layers){var style2=document.layers[element].style;if(document.Form3.CallFrom.selectedIndex==2){style2.display="block";}else{style2.display="";}}}
function clear_radio_buttons(){for(var i=0;i<document.Form3.PreTesting.length;i++){document.Form3.PreTesting[i].checked=false;}}}
if(bookvc.actionIsViewroomsSessionPublicUser==true){function DialDetail(){SelDD=document.Form3.CallFrom.selectedIndex;if(SelDD==1){explainpop('unknown_explain.html');}
DDA="";DDB="block";DDC="";RRB="block";if(SelDD==0){DDA="";DDB="";DDC="";}
if(SelDD==1){DDA="";DDB="";DDC="";document.Form3.IPorISDN.selectedIndex=0;document.Form3.transspeed.selectedIndex=0;}
if(SelDD==2){DDA="block";DDB="";DDC="";}
if(SelDD==3){DDA="";DDB="block";DDC="";day=new Date();}
if(SelDD==4){DDA="";DDB="";DDC="block";}
if(document.getElementById){var DDstyle1=document.getElementById("DDAStyle").style;DDstyle1.display=DDA;var DDstyle2=document.getElementById("DDBStyle").style;DDstyle2.display=DDB;var DDstyle3=document.getElementById("DDCStyle").style;DDstyle3.display=DDC;}
else if(document.all){var DDstyle1=document.all["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.all["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.all["DDCStyle"].style;DDstyle3.display=DDC;}
else if(document.layers){var DDstyle1=document.layers["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.layers["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.layers["DDCStyle"].style;DDstyle3.display=DDC;}}}
if(bookvc.actionIsViewroomsSessionPublicUserElse==true){function DialDetail(){SelDD=document.Form3.CallFrom.selectedIndex;DDA="";DDB="block";DDC="";RRB="block";if(SelDD==0){DDA="";DDB="";DDC="";}
if(SelDD==1){DDA="block";DDB="";DDC="";}
if(SelDD==2){DDA="";DDB="block";DDC="";day=new Date();}
if(SelDD==3){DDA="";DDB="";DDC="block";}
if(document.getElementById){var DDstyle1=document.getElementById("DDAStyle").style;DDstyle1.display=DDA;var DDstyle2=document.getElementById("DDBStyle").style;DDstyle2.display=DDB;var DDstyle3=document.getElementById("DDCStyle").style;DDstyle3.display=DDC;}
else if(document.all){var DDstyle1=document.all["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.all["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.all["DDCStyle"].style;DDstyle3.display=DDC;}
else if(document.layers){var DDstyle1=document.layers["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.layers["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.layers["DDCStyle"].style;DDstyle3.display=DDC;}}}
if(bookvc.actionIsViewroomsSessionPublicUserElse==true){function DialDetail(){SelDD=document.Form3.CallFrom.selectedIndex;DDA="";DDB="block";DDC="";RRB="block";if(SelDD==0){DDA="";DDB="";DDC="";}
if(SelDD==1){DDA="block";DDB="";DDC="";}
if(SelDD==2){DDA="";DDB="block";DDC="";day=new Date();}
if(SelDD==3){DDA="";DDB="";DDC="block";}
if(document.getElementById){var DDstyle1=document.getElementById("DDAStyle").style;DDstyle1.display=DDA;var DDstyle2=document.getElementById("DDBStyle").style;DDstyle2.display=DDB;var DDstyle3=document.getElementById("DDCStyle").style;DDstyle3.display=DDC;}
else if(document.all){var DDstyle1=document.all["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.all["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.all["DDCStyle"].style;DDstyle3.display=DDC;}
else if(document.layers){var DDstyle1=document.layers["DDAStyle"].style;DDstyle1.display=DDA;var DDstyle2=document.layers["DDBStyle"].style;DDstyle2.display=DDB;var DDstyle3=document.layers["DDCStyle"].style;DDstyle3.display=DDC;}}}
if(bookvc.actionIsStep4==true){function ClearOrgFields(){document.Form4.CID.value="";document.Form4.Company.value="";document.Form4.Salutation[0].selected=true;document.Form4.FName.value="";document.Form4.LName.value="";document.Form4.Title.value="";document.Form4.EmailAddress.value="";document.Form4.Phone.value="";document.Form4.address01.value="";document.Form4.address02.value="";document.Form4.Suburb.value="";document.Form4.state.value="";document.Form4.pcode.value="";document.Form4.Country[0].selected=true;document.Form4.payoption[0].checked=false;document.Form4.payoption[1].checked=false;}
function dowebconfdetails(element){if(document.getElementById){var styleWCD=document.getElementById(element).style;if(document.Form4.WebConf.checked==true){styleWCD.display="block";}else{styleWCD.display="none";}}
else if(document.all){var styleWCD=document.all[element].style;if(document.Form4.WebConf.checked==true){styleWCD.display="block";}else{styleWCD.display="";}}
else if(document.layers){var styleWCD=document.layers[element].style;if(document.Form4.WebConf.checked==true){styleWCD.display="block";}else{styleWCD.display="";}}}
function CCzoompopup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=512');");}
function surchpop(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=312');");}
function ABzoompopup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=512');");}
function SetREG(element){if(document.getElementById){var style2=document.getElementById("LOGINStyle1").style;var style3=document.getElementById("REGStyle1").style;var style4=document.getElementById("RowRegStyle1").style;style2.display="";style3.display="";style4.display="none";document.Form4.register.value="N";if(document.Form4a.register[0].checked==true){style2.display="block";style3.display="";style4.display="none";document.Form4.register.value="N";}
if(document.Form4a.register[1].checked==true){style2.display="";style3.display="block";style4.display="table-row";document.Form4.register.value="Y";}}
else if(document.all){var style2=document.all["LOGINStyle1"].style;var style3=document.all["REGStyle1"].style;style2.display="";style3.display="";document.Form4.register.value="N";if(document.Form4a.register[0].checked==true){style2.display="block";style2.display="";document.Form4.register.value="N";}
if(document.Form4a.register[1].checked==true){style2.display="";style2.display="block";document.Form4.register.value="Y";}}
else if(document.layers){var style2=document.layers["LOGINStyle1"].style;var style3=document.layers["REGStyle1"].style;style2.display="";style3.display="";if(document.Form4a.register[0].checked==true){style2.display="block";style3.display="";document.Form4.register.value="N";}
if(document.Form4a.register[1].checked==true){style2.display="block";style3.display="";document.Form4.register.value="Y";}}}
function SetLOGIN(element){if(document.getElementById){var style3=document.getElementById(element).style;if(style3.display==""){style3.display="block";}else{style3.display="";}}
else if(document.all){var style3=document.all[element].style;if(style3.display==""){style3.display="block";}else{style3.display="";}}
else if(document.layers){var style3=document.layers[element].style;if(style3.display==""){style3.display="block";}else{style3.display="";}}}}
if(bookvc.actionIsEmptyTest3==true){var tipwidth='146px'
var disappeardelay=1000
var vertical_offset="0px"
var horizontal_offset="-10px"
var ie4=document.all
var ns6=document.getElementById&&!document.all
if(ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+'" ></div>')
function getposOffset(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;}
function showhide(obj,e,visible,hidden,tipwidth){if(ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if(tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth}
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover")
obj.visibility=visible
else if(e.type=="click")
obj.visibility=hidden}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function clearbrowseredge(obj,whichedge){var edgeoffset=(whichedge=="rightedge")?parseInt(horizontal_offset)*-1:parseInt(vertical_offset)*-1
if(whichedge=="rightedge"){var windowedge=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if(windowedge-dropmenuobj.x<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}
else{var windowedge=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if(windowedge-dropmenuobj.y<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight}
return edgeoffset}
function fixedtooltip(menucontents,obj,e,tipwidth){if(window.event)event.cancelBubble=true
else if(e.stopPropagation)e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById?document.getElementById("fixedtipdiv"):fixedtipdiv
dropmenuobj.innerHTML=menucontents
if(ie4||ns6){showhide(dropmenuobj.style,e,"visible","hidden",tipwidth)
dropmenuobj.x=getposOffset(obj,"left")
dropmenuobj.y=getposOffset(obj,"top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+"px"}}
function hidetip(e){if(typeof dropmenuobj!="undefined"){if(ie4||ns6)
dropmenuobj.style.visibility="hidden"}}
function delayhidetip(){if(ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)}
function clearhidetip(){if(typeof delayhide!="undefined")
clearTimeout(delayhide)}}
function setCheckIn(){var myindex=document.Form3.start_time.selectedIndex;var SelValue=document.Form3.start_time.options[myindex].value;if(SelValue.length==4){document.Form3.StartTime_Hours.value=SelValue.substring(0,1);document.Form3.StartTime_Minutes.value=SelValue.substring(1,2);document.Form3.StartTime__ampm.value=SelValue.substring(2);}
if(SelValue.length==5){if(SelValue.substring(0,1)=='1'&&SelValue.substring(1,3)!='30'&&SelValue.substring(1,3)!='15'&&SelValue.substring(1,3)!='45'){document.Form3.StartTime_Hours.value=SelValue.substring(0,2);document.Form3.StartTime_Minutes.value=SelValue.substring(2,3);document.Form3.StartTime__ampm.value=SelValue.substring(3);}else{document.Form3.StartTime_Hours.value=SelValue.substring(0,1);document.Form3.StartTime_Minutes.value=SelValue.substring(1,3);document.Form3.StartTime__ampm.value=SelValue.substring(3);}}
if(SelValue.length==6){document.Form3.StartTime_Hours.value=SelValue.substring(0,2);document.Form3.StartTime_Minutes.value=SelValue.substring(2,4);document.Form3.StartTime__ampm.value=SelValue.substring(4);}}
function setPeriod(){var myindex=document.Form3.period.selectedIndex;var SelValue=document.Form3.period.options[myindex].value;document.Form3.Duration_Hours.value=SelValue.substring(0,1);document.Form3.Duration_Minutes.value=SelValue.substring(1);}
