loadjscssfile("../cgi-bin/jscript/jquery.js" , "js");
loadjscssfile("../cgi-bin/jscript/jquery.alerts.js" , "js");
loadjscssfile("../cgi-bin/jscript/confirmsubmit.js" , "js");
loadjscssfile("../css/jquery.alerts.css" , "css");


var browserName=navigator.appName;
if (browserName=="Netscape")
{ 

function PostEmptyForm(agent) {
	if (agent==1) {
	document.forms["Login"].action = document.forms["Login"].action + Math.floor(Math.random() * 2981230981);
		document.forms["Login"].submit();
	} else {
		document.forms["Start"].action = document.forms["Start"].action + Math.floor(Math.random() * 1730493507);
		document.forms["Start"].submit();
	}
}

function PostFormEC(theform, mth) { 
  document.forms[theform].action = document.forms[theform].action + Math.floor(Math.random() * 2981230981);
  if (mth == 'GET') {
		 document.location = document.forms[theform].action;
  } else {
        document.forms[theform].submit();
  }
}

}
else 
{ 
 if (browserName=="Microsoft Internet Explorer")
 {

function PostEmptyForm(agent) {
	if (agent==1) {
	document.getElementById('Login').action = document.getElementById('Login').action + Math.floor(Math.random() * 2981230981);
		document.getElementById('Login').submit();
	} else {
		document.getElementById('Start').action = document.getElementById('Start').action + Math.floor(Math.random() * 1730493507);
		document.getElementById('Start').submit();
	}
}

function PostFormEC(theform, mth) {
	 document.getElementById(theform).action = document.getElementById(theform).action + Math.floor(Math.random() * 2981230981);
  if (mth == 'GET') {
	 document.location = document.getElementById(theform).action;
  } else {
        document.getElementById(theform).submit();
  }
}

 }
 else
  {
    alert("This feature is currently unavailable. -BF&M Web Administration");
   }
}


//24-Oct-2009 	Ashfaq	#945 - C Travel - Allow Promo code from Web Site for Travel
//Start
function loadjscssfile(filename, filetype){
 if (filetype=="js"){ //if filename is a external JavaScript file
  var fileref=document.createElement('script')
  fileref.setAttribute("type","text/javascript")
  fileref.setAttribute("src", filename)
 }
 else if (filetype=="css"){ //if filename is an external CSS file
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", filename)
 }
 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref)
}
//End


