// jump list function
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showimage(path, file, h, w){
	MM_openBrWindow('/image.php?img=gfx/' + path + '/' + file,'img','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w, 'height=' + h);
	}
var hX = 1;
//var vY = 200;
var vY = 1;

function menu_stuff(){
var good;function checkEmailAddress(field){
var goodEmail=field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){good = true}else{alert('Please enter a valid e-mail address.');
field.focus();field.select();good=false;}}
u=window.location;m="I thought this might interest you...";
function mailThisUrl(){good=false;
checkEmailAddress(document.eMailer.address);
if (good){window.location="mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;}}
var nn=(navigator.appName.indexOf("Netscape")!=-1);
var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';
function floatMail(iX,iY,id){
var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];		
this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;
L.P=function(x,y){this.style.left=x+px;this.style.top=y+px;};L.Fm=function(){var pX, pY;	
pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;	
pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;	
if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;	
this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY);
setTimeout(this.id+'O.Fm()',33);};
return L;}
floatMail(hX,vY,'FloatMail').Fm();	
}

function copycardholderdata(){
	if(document.getElementById('cccopy').checked == true) {
		document.getElementById('cc_holder').readOnly = true;
		document.getElementById('cc_holderaddress').readOnly = true;
	} else {
		document.getElementById('cc_holder').readOnly = false;
		document.getElementById('cc_holderaddress').readOnly = false;
	}
	document.getElementById('cc_holder').value = document.getElementById('firstname').value + ' ' + document.getElementById('lastname').value;
	document.getElementById('cc_holderaddress').value = document.getElementById('address').value + '\n' + document.getElementById('postal').value;
}

function copycardholderdatachecked() {
	if(document.getElementById('cccopy').checked == true){
		document.getElementById('cc_holder').value = document.getElementById('firstname').value + ' ' + document.getElementById('lastname').value;
		document.getElementById('cc_holderaddress').value = document.getElementById('address').value + '\n' + document.getElementById('postal').value;
		
	}
}