// JavaScript Document

// drop down menu

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

//flash
function RunHomeFlash() //home flash
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="940" height="150">\n');
document.write('<param name="movie" value="/flash/home.swf" />\n');
document.write('<PARAM NAME="wmode" VALUE="transparent">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<embed src="/flash/home.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="940" height="150" wmode="transparent"></embed>\n');
document.write('</object>\n');
}

function submitCard(cardNumber,cardType,cardMonth,cardYear){
	flag = checkCreditCard(cardNumber,cardType);
	if(!flag){
		alert("Please enter a valid credit card number for the selected credit card type");
		return false;
	}
	
	today = new Date();
	expiry = new Date(cardYear, cardMonth);
	if(today.getTime() > expiry.getTime()){
		alert("Please enter a valid expiry date");
		return false;
	}
	return true;
}

function changeTarget(frm,act){
	frm.action = act;
}