function RHOrder()
	{; window.alert("Because Hard and Rigid Gas Permeable (RGP) lenses are custom made and the prescriptions \ncan be very complex, most orders can not be completed online. To insure the accuracy of \nyour lenses we ask that you e-mail, fax, or mail your prescription to us, along with your \nday & evening phone numbers.  We will call you to complete your order.  Only those people \nwho have ordered these lenses from us before, and wish to place a reorder with no change in \nprescription, may go to the 'express reorder center' and order online.  Please call us \n@ 1-(800) - 779-2654  with any questions. \nEmail: info@clrc.com \nFax number: (631) 643-4009 \nMailing Address: P.O. Box 615\n                           Wheatley Heights., NY 11798") }

function Fnum()
	{; window.alert("       CLRC.com\nEmail: info@clrc.com \nFax number: (631) 643-4009 \nMailing Address: P.O. Box 615\n                           Wheatley Heights., NY 11798") }

function LogIn()
	{; window.open("/login.html", "logenter", "height=290,width=500,scrollbars=no,location=no") }

function PassRetrieve()
	{; window.open("/password_retrieval.html", "Rinfo", "height=260,width=500,scrollbars=no,location=no") }

function RShipping()
	{; window.open("/Rshipping.html", "Rinfo", "height=600,width=550,scrollbars=yes,location=no") }

function RFaq()
	{; window.open("/Rfaq.html", "Rinfo", "height=500,width=550,scrollbars=yes,location=no") }

function RTest()
	{; window.open("/Rtest.html", "Rinfo", "height=500,width=550,scrollbars=yes,location=no") }

function RCont()
	{; window.open("/Rcont_Full.html", "Rinfo", "height=350,width=550,scrollbars=yes,location=no") }

function Rurx()
	{; window.open("/Rurx.html", "Rinfo", "height=350,width=550,scrollbars=yes,location=no") }

function RReturn()
	{; window.open("/Rreturn.html", "Rinfo", "height=350,width=550,scrollbars=yes,location=no") }

function RGuarantee()
	{; window.open("/Rguarantee.html", "Rinfo", "height=350,width=550,scrollbars=yes,location=no") }


function checkDelete()
{
         { confirm("Are you sure you want to cancel your order?")
         if (true)
            document.form_verify.submit();
            else
            return false;
            }

   var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
 }






function doEcho()
{
var txt=document.reg.PaymentFName.value;
document.reg.ShippingFName.value=txt;
document.reg.PaymentFName.value=txt;

var txt=document.reg.PaymentLName.value;
document.reg.ShippingLName.value=txt;
document.reg.PaymentLName.value=txt;

var txt=document.reg.PaymentAddress.value;
document.reg.ShippingAddress.value=txt;
document.reg.PaymentAddress.value=txt;

var txt=document.reg.PaymentCity.value;
document.reg.ShippingCity.value=txt;
document.reg.PaymentCity.value=txt;

var txt=document.reg.PaymentState.value;
document.reg.ShippingState.value=txt;
document.reg.PaymentState.value=txt;

var txt=document.reg.PaymentZip.value;
document.reg.ShippingZip.value=txt;
document.reg.PaymentZip.value=txt;

// var txt=document.echo.PaymentCountry.value;
// document.echo.ShippingCountry.value=txt.toLowerCase();
// document.echo.PaymentCountry.value=txt.toLowerCase();

// var txt=document.form.PaymentPhone_day.value;
// document.form.ShippingPhone_day.value=txt;
// document.form.PaymentPhone_day.value=txt;

// var txt=document.form.PaymentPhone_day-extension.value;
// document.form.ShippingPhone_day-extension.value=txt;
// document.form.PaymentPhone_day-extension.value=txt;

// var txt=document.form.PaymentPhone_eve.value;
// document.form.ShippingPhone_eve.value=txt;
// document.form.PaymentPhone_eve.value=txt;
}





// function printit(){
// if (NS) {
// window.print() ;
// } else {
// var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
// document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
// WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";
// }
// }
// var NS = (navigator.appName == "Netscape");
// var VERSION = parseInt(navigator.appVersion);
// if (VERSION > 3) {
// document.write('<form><input type=button value="Print this Page" name="Print" onClick="printit()"></form>');
// }






function Go()
	{return}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



function MM_validateForm() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (val!=''+num) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}



function formatPhoneREO(field)
{
        var temp = field.value.replace(/[^0-9]/g, "");
        var cursor = temp.length;

        temp = temp.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})(\d*)/, "($1)$2-$3 x $4");

        if (cursor < 11)
                temp = temp.replace(/\s*x\s*$/, "");
        if (cursor < 7)
                temp = temp.replace(/\-\s*$/, "");
        if (cursor < 3)
                temp = temp.replace(/\)\s*$/, "");
        if (! cursor)
                temp = "";

        field.value = temp;
        return true;
}
