var basepath='http://www.cornishcottagesonline.com/'; function goURL(url){ document.location=url; } function goNewURL(url,ident,width,height){ window.open(url,ident,'width='+width+',height='+height+',scrollbars=yes'); } function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function SetCookie( name, value, expires, path, domain, secure ){ var today = new Date(); today.setTime(today.getTime()); if (expires){expires = expires * 1000 * 60 * 60 * 24;} var expires_date = new Date(today.getTime()+(expires)); document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } function getshortlist(){ } function addshortlist(pname,plink){ var addOK=true; var tmp=ReadCookie('MCshortlist'); if (tmp!=''){ var Recs=tmp.split("~"); for(var r=0;rMy Shortlist'; var Recs=Str.split("~"); var Rec=''; for(var i=0;i'; } tmp=tmp+''; tmp=tmp+'
'+Rec[0]+' x
---------------
View Detailed List
'; document.getElementById('MCSlist').innerHTML=tmp; }else{document.getElementById('MCSlist').innerHTML='';} } function checkwidth(){ var tmp=ReadCookie('MCpagewidth'); var sw=0; if(window.outerWidth){sw=window.outerWidth;} else if(document.body.clientWidth){sw=document.body.clientWidth;} // alert(sw); if(tmp!=sw){ SetCookie('MCpagewidth',sw,'','/','',''); tmp=ReadCookie('MCpagewidth'); if(tmp!=''){ window.location.reload( true ); } } } function tr_toggle(a,b,tabn){ if(a==b){i=a;if (document.getElementById(tabn+i).style.display==""){document.getElementById(tabn+i).style.display="none";}else{document.getElementById(tabn+i).style.display="";}}else{ for (i=a;i0){ document.areajump.submit(); } } } function webclient_init(){ checkwidth(); updateshortlist(); }