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 CheckIsIE()
{
	if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;}
		else { return false; }
}
function PrintThisPage()
{
	if (CheckIsIE() == true)
	{
		window.focus();
		window.print();
	}
	else
	{
		window.focus();
		window.print();
	}
}

function regardingSubject(){
		var i=document.getElementById("regSubject").selectedIndex;
		if(i==1){
			document.getElementById("sub").style.display="block";
			var a=new Array("Current","Savings","Term Deposit");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==2){
			document.getElementById("sub").style.display="block";
			var a=new Array("Balance Transfer Facility","Personal Installment Loan","Home Finance","Loan Against Shares");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==3){
			document.getElementById("sub").style.display="block";
			var a=new Array("Future Perfect Credit Card","ABN AMRO Ufone Credit Card");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==4){
			document.getElementById("sub").style.display="block";
			var a=new Array("Treasure Plus","Golden Years","All Rounder","Global Accident Protection Plan","ATM Withdrawal Insurance");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else{
			document.getElementById("sub").style.display="none";
		}
		
	}
	function validate(){
		var n=document.getElementById("cname");
		var e=document.getElementById("email");
		var cat=document.getElementById("category");
		var m=document.getElementById("msg");
		
		if(n.value==""){
			alert("Please Enter Name");
			n.focus();
			return false;
		}else if(e.value.indexOf('@')==-1 || e.value=="" || e.value.indexOf('.')==-1){
			alert("Please Enter Valid Email Address");
			e.focus();
			return false;
		}else if(cat.value==""){
			alert("Please Select Category");
			cat.focus();
			return false;
		}else if(m.value==""){
			alert("Please Select Regarding Subject");
			m.focus();
			return false;
		}
			return true;
		
	}