
//--------------------------------------------------------------
function awButtonSubmit(id1, event)
{
    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    if (keyCode == 13 || keyCode == 3) 
    {
		event.returnValue=false;
		id1.returnValue=false;
	   	id1.click();
		if (document.all && document.getElementById)
		{
		}
	}
}  

//--------------------------------------------------------------
function awDualButtonSubmit(id1, id2, event)
{
    var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
    if (keyCode == 13 || keyCode == 3) 
    {
		event.returnValue=false;
		if (id1 != undefined)
		{
			id1.returnValue=false;
	   		id1.click();
	   	}
	   	else if (id2 != undefined)
	   	{
			id2.returnValue=false;
	   		id2.click();
	   	}
	}
}  

//--------------------------------------------------------------
function SetQSBox(Obj, Val)
{
    obj.value = Val;
}  


var isInput;

//--------------------------------------------------------------
function IsInputSubmit()
{
	if (isInput)
	{
		return true;
	}
	else
	{
		return false;
	}
}  

var isQSInput;

//--------------------------------------------------------------
function awQSClick(rootpath, Keywords, InitialValue)
{

	if (isQSInput)
	{
		isQSInput=true;
		if (Keywords.value == InitialValue)
		{
			document.location = rootpath + "/Default.aspx?sID=5";
		}
		else
		{
		isInput = true;
		}
	}
	else
	{
		return false;
	}
	
}  

//--------------------------------------------------------------
function awPopUpWindow(url, target, features) {
	//"location=0,  statusbar=0,  menubar=0,  width=800,  height=300";
  	var theWindow =
    window.open(url, target, features);
 	theWindow.focus();
  	return theWindow;
}

//--------------------------------------------------------------	
function awOpenMailWin(x, y, params) 
{
	if (params =="")
		window.open(x,y,'status=no,scrollbars=no,resizable=no,width=400,height=425');
	else
		window.open(x, y, params);
}

sfHover = function() {
	if (document.getElementById("dropdownnav1")) {
	var sfEls = document.getElementById("dropdownnav1").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//-------Terms and Conditions-------------------------------------------------------	
function goWin() {
var mh = 500;
var mw = 800;
TheWin = window.open('http://www.bacl.net/Default.aspx?sID=703&lID=0','image','height=' + mh + ',width=' + mw + ',toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
TheWin.resizeTo(mw+2,mh+30);

TheWin.moveTo(200,0);
TheWin.focus();
}

//-------Find out more about Conservatives-------------------------------------------------------	
function goWin2() {
var mh = 500;
var mw = 500;
TheWin = window.open('','image','height=' + mh + ',width=' + mw + ',toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
TheWin.resizeTo(mw+2,mh+30);
TheWin.document.write('<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1.0Transitional\/\/EN" "http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd"><html xmlns="http:\/\/www.w3.org\/1999\/xhtml">');
TheWin.document.write('<head><title>Popup<\/title><\/head><body style="overflow:hidden" bgcolor="#F8FAFC">');
TheWin.document.write('<p><b>Learn more</b></p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eu sem. Nam aliquet consequat felis. Nullam diam augue, luctus eu, feugiat non, mattis quis, dui. Quisque mattis lacus ut diam. Vivamus ut quam a dui posuere porttitor. Ut ipsum sapien, lacinia vel, ultricies non, lacinia quis, ipsum. Proin ut turpis. In tristique, orci vitae euismod laoreet, magna tortor posuere elit, vel egestas purus lacus ut tortor. Fusce nulla urna, sollicitudin.<\/body><\/html>');
TheWin.moveTo(200,0);
TheWin.focus();
}



