// JavaScript Document
//pass values are "element id"   to change the Color of Table Cell
var eId
function onOver(eId){
document.getElementById(eId).style.backgroundColor='#E88400';//'#FAB93B'; 
document.getElementById(eId).style.cursor='hand'; 
document.getElementById(eId).style.color='#E88400';
self.status = '< Allied Bank Pakistan >';
}

function onOut(eId){
document.getElementById(eId).style.backgroundColor='';
document.getElementById(eId).style.color='';
self.status = '< Allied Bank Pakistan >';
}

function onSelected(eId){
document.getElementById(eId).style.backgroundColor='#042975';
document.getElementById(eId).style.color='#E88400';
self.status = '< Allied Bank Pakistan >';
}

function loadUrl(getUrl) {
window.open(getUrl ,'_parent','scrollbars=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no,menubar=no');
self.status = '< Allied Bank Pakistan >';
}

function loadNewUrl(getUrl) {
window.open(getUrl ,'_new','scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes');
self.status = '< Allied Bank Pakistan >';
}

function showTheHand()
{
//alert();
	document.getElementById(eId).style.cursor='hand';
	document.getElementById(eId).style.color= '#E88400'; 
   //document.getElementById(eId).style.font-weight= '500';
}
function showHand(eId)
{
	document.getElementById(eId).style.cursor='hand';
	document.getElementById(eId).style.color= '#E88400'; 
   //document.getElementById(eId).style.font-weight= '500';
}
// to quickly find out or load the page 

function quickURL(getURL){
//alert(getURL);
window.open(getURL,'_parent','scrollbars=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no,menubar=no');
self.status = '< Allied Bank Pakistan >';
}


function getBranch(getBranch){
alert(getBranch);
//document.getElementById("display_OnlineBranches").src="cities.asp?country="+
}

function FAQ() {
	window.open('faq.htm','_blank','scrollbars=yes,resizable=yes,toolbar=no,location=no,status=no,menubar=no,width=400,height=500');
	return false;
}


	function hidemenu(hideme) {
		//alert (hideme.innerHTML);
		hideme.style.display='none';
	}	
	
		function delayhidemenu(x){
			ctltohide = document.getElementById(x);
			
			if (ctltohide != null) {
				hidemenu(ctltohide);
			}
	}
function showDD(xxx) {
		p = document.getElementById(xxx);
		if (p != null) {
			if (p.style.display == 'block')
				p.style.display = 'none';
			else
				p.style.display = 'block';
		}
}
	
//function showQlink() {
//		if (fun2) {
//			p = document.getElementById("d_Qlink");
//			if (p != null) {
//				p.style.display = 'none';
//			}
//		}
//		else {
//			p = document.getElementById("d_Qlink");
//			if (p != null) {
//				p.style.display = 'block';
//			}
//			fun2 = true;
//		}
//	}
function addCityValue(cityName) {

document.getElementById("City_Name").value=cityName;
}
function addRegionValue(Region) {
//alert();
document.getElementById("Region").value=Region;
}

			function findPosY(obj) {
				
				var curtop = 0;
				if (obj.offsetParent)
				{
					while (obj.offsetParent)
					{
						curtop += obj.offsetTop
						obj = obj.offsetParent;
					}
				}
				else if (obj.y)
					curtop += obj.y;
				return curtop;
			}
			
			function findPosX(obj) {
				
				var curleft = 0;
				if (obj.offsetParent)
				{
					while (obj.offsetParent)
					{
						curleft += obj.offsetLeft
						obj = obj.offsetParent;
					}
				}
				else if (obj.y)
					curleft += obj.y;
				return curleft;
			}
