var CLBaseCurve = 0;

function CLBaseCurve1(valueSelected) 
		{
		CLBaseCurve = + valueSelected;
		alert(CLBaseCurve)
		return CLBaseCurve;
		}


function ContactLensChoose(valueSelected) 
		{
		this.location.href = 'Contact-Lenses-Template-Choosen.asp?IDC=' + valueSelected;
		}


function ContactLensCatAll(valueSelected) 
		{
		this.location.href = 'Contact-Lenses-Template-All.asp?CATEGORY=' + valueSelected;
		}


function ContactLensChange(valueSelected) 
		{
		this.location.href = 'Contact-Lenses-Template.asp?ID=' + valueSelected;
		}

function specMDBchange(valueSelected) 
		{
		this.location.href = 'spec-MDB.asp?id=' + valueSelected;
		}

function sungMDBchange(valueSelected) 
		{
		this.location.href = 'sung-MDB.asp?id=' + valueSelected;
		}

function popup(url,nme,hgt,wgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=yes,status=no,menubar=no,resizable=no';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);

		}

function popup2(url,nme,hgt,wgt)
		{
		var params='toolbar=no,height='+hgt+',width='+wgt+',location=no,scrollbars=no,status=no,menubar=no,resizable=no';
		if(self && self.screen && self.screen.width)
			{
			params+=",left="+((self.screen.width-wgt)/2);
			params+=",top="+((self.screen.height-hgt)/2);
			}
		window.open(url,nme,params);

		}


		
function navto(prefix,url)
		{
		this.location.href = prefix+url;
		}


var strips=new Array();
var strip= 1;

var intID;
function go_strip()
	{
	strip++;
	if(strip>6)strip=1;
	if(document.images)
		{
    		document['strip'].src=strips[strip].src;
		if(document.all || document.layers) {} else {intID=setTimeout("go_strip()",5500)}
 		}
	}

function loadstrips()
	{
	if(document.images)
		{
		for(var st=1;st<7;st++)
			{
			strips[st]=new Image();
			strips[st].src='images/promos/promo'+st+'.gif';
			}
		if(document.all || document.layers) {intID=setInterval("go_strip()",5500);} else {intID=setTimeout("go_strip()",5500)}
		}
	}

function clearstrips()
	{
	if(document.all || document.layers) {clearInterval(intID);} else {clearTimeout(intID);}
	}

function CheckEmail(emailad) {
  var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
  var check=/@[\w\-]+\./;
  var checkend=/\.[a-zA-Z]{2,6}$/;
  if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend) == -1)){
	return false;
  }
  else {
	return true;
  }
}