var active = false; function resize_MainPanel(){ var sht = screen.availHeight; var top = window.screenTop; var tableht; /*if (document.getElementById){ document.getElementById('MainContent').style.height = '500px'; }else{ if(!active){ active = true; var maxht = sht - top; if( maxht > 500){ maxht = 500; } document.body.style.height = maxht; var ht = maxht - document.getElementById('menubarDiv').offsetHeight; if (document.getElementById('footerDIV')){ ht-=document.getElementById('footerDIV').offsetHeight; //alert('found' + ht); } if (ht < 50) {ht=50}; document.getElementById('MainContent').style.height = ht; // alert(ht+' '+window.document.body.offsetHeight); }else{ active = false; } }*/ } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setCookie(c_name,value,expiredays) {var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } function checkCookie() { username=getCookie('username'); if (username!=null && username!="") { //alert('Welcome again '+username+'!'); } else { username=prompt('Please enter your email address:',""); if (username!=null && username!="") { setCookie('username',username,365); } } } function addDetail(theID){ //alert(theID); details = getCookie('enquiry'); if (details!=null && details!="") { if(!contains(details,theID)){ details += theID+';'; setCookie('enquiry',details,365); } } else { setCookie('enquiry',theID+';',365); } // alert('enquiry='+getCookie('enquiry')); } function isCookieSet(theID){ value = false; //alert(theID); details = getCookie('enquiry'); if (details!=null && details!=""){ value = contains(details,theID); } return value; } function contains(theList,theID){ found = false; mylist = theList.split(';'); for( x in mylist){ if(mylist[x] == theID){ found = true; } } return found; } function removeDetail(theID){ details = getCookie('enquiry'); newlist = ''; if (details!=null && details!=""){ mylist = details.split(';'); for( x in mylist){ if((mylist[x] != theID) && (mylist[x] != '') ){ // alert('ml='+mylist[x]); newlist += mylist[x]+';'; } } // alert('new='+newlist); setCookie('enquiry',newlist,365); } //alert('enquiry='+getCookie('enquiry')); } function removeAllDetails(){ setCookie('enquiry','',1); } function mailMe(thePlace){ document.location.href="MailTo:"+ thePlace +"@augesco.com"; } function bookmark() { var url = location.href; var pageName = 'Augesco Rubber Products'; alert(url); if (window.external != undefined && window.external != null) { window.external.AddFavorite(url, pageName); } else { alert("Sorry! Your browser doesn't support function. Use the bookmark option in your browser instead."); } }