// JavaScript Document
<!--
var zxcBlankImg='images/space.gif';
var zxcOOPCnt=0;
function zxcZoomText(zxcobj,zxcssz,zxcfsz,zxcspd){
 if (typeof(zxcobj)=='string'){ zxcobj=document.getElementById(obj); }
 if (!zxcobj.oopct){
  zxcspd=zxcspd||100;
  if (zxcBlankImg){ zxcobj.style.backgroundImage='url('+zxcBlankImg+')'; }
  zxcobj.oopct=new zxcOOPTxtZoom(zxcobj,zxcssz,zxcfsz,zxcspd);
 }
 clearTimeout(zxcobj.oopct.to);
 zxcobj.oopct.minmax[4]*=-1;
 zxcobj.oopct.cngtxt();
}
function zxcOOPTxtZoom(zxcobj,zxcssz,zxcfsz,zxcspd){
 this.obj=zxcobj;
 if (zxcobj.style.position){
  if (zxcobj.style.position='absolute'){
   this.abs=[zxcobj.offsetLeft,zxcobj.offsetWidth];
  }
 }
 this.ref='zxcoopct'+zxcOOPCnt++;
 window[this.ref]=this;
 this.minmax=[zxcssz,Math.min(zxcssz,zxcfsz),Math.max(zxcssz,zxcfsz),zxcspd,(zxcssz<zxcfsz)?-1:1];
 this.to=null;
}
zxcOOPTxtZoom.prototype.cngtxt=function(){
 if ((this.minmax[4]>0&&this.minmax[0]<this.minmax[2])||(this.minmax[4]<0&&this.minmax[0]>this.minmax[1])){
  this.obj.style.fontSize=(this.minmax[0]+=this.minmax[4])+'px';
  if (this.abs){
   this.obj.parentNode.style.width=(this.obj.offsetWidth+parseInt(this.obj.style.fontSize))+'px';
   this.obj.parentNode.style.left=(parseInt(this.obj.style.fontSize)/2)+'px';
  }
  this.to=this.setTimeOut('cngtxt();',this.minmax[3]);
 }
}

zxcOOPTxtZoom.prototype.setTimeOut=function(zxcf,zxcd){
 this.to=setTimeout('window.'+this.ref+'.'+zxcf,zxcd);
}
//-->



	function open_this()
	 {
		window.open('http://www.shopeastwest.com/med/abt_gen.php','','width=620 height=450 top=100 left=200 scrollbars=1 statusbar=0 toolbars=0 resizable=yes');
	 } 

    function alertContents(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
            getObject("strerr").innerHTML = "<font color='white'><br>"+http_request.responseText +"</font>";
            } else {
                // alert('There was a problem with the request.');
            }
        }

    }
function getObject(name) 
{
   var ns4 = (document.layers) ? true : false;
   var w3c = (document.getElementById) ? true : false;
   var ie4 = (document.all) ? true : false;

   if (ns4) return eval('document.' + name);
   if (w3c) return document.getElementById(name);
   if (ie4) return eval('document.all.' + name);
   return false;
}


function getCookie(NameOfCookie)
	{
		if (document.cookie.length > 0) 
			{
				begin = document.cookie.indexOf(NameOfCookie+"=");       
				if (begin != -1) 
					{
						begin += NameOfCookie.length+1;       
						end = document.cookie.indexOf(";", begin);
						if (end == -1) end = document.cookie.length;
						return unescape(document.cookie.substring(begin, end));
					}
			}
	}


function openwin2_new (url) {
	window.open("http://www.shopeastwest.com/med/"+url,"Shopeastwest","resizable=yes, scrollbars=yes, toolbar=no, width=250, height=200, top=50");
}

function day_guarantee ()
 { window.open('http://www.shopeastwest.com/med/garauntee.php','Shopeastwest','resizable=yes,scrollbars=yes,toolbar=no,width=250,height=200,top=50')
}

