/*function init() {
	var target = document.getElementById("content");
	target.style.height = document.body.offsetHeight - 350+'px';
	
}

window.onresize = function (){
	 init();
}*/

function wopen3 (obj){
 var wo = window.open("", "abc", "width=10, height=10, scrollbars=0, status=0");
 wo.document.open();
 var win = "";
 win = "<html><head>";
 win += "<title>Image</title>";
 win += "<script>function resizes (obj){";
 win += "var w=obj.width, h=obj.height;";
 win += "window.resizeTo (w+8, h+25);";
 win += "}</"+"script"+">";
 win += "<style type='text/css'> * {margin:0; padding:0; border:0; } </style> </head>"
 win += "<body>";
 win += "<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center'>";
 win += "<img src='" + obj + "' alt='' onload='resizes(this)' />";
 win += "</td></tr></table>";
 win += "</body></html>";
 wo.document.write(win);
 wo.window.focus();
 wo.document.close();
}



function bannersRotate(){
    var oCur = document.getElementById ('ban_' + bans[iCur]);
    oCur.style.display = 'none';
    if (iCur == bans.length-1)
        iCur = 1;
    else
        iCur ++;

    oCur = document.getElementById ('ban_' + bans[iCur]);
    oCur.style.display = 'block';
    
}


var oLastOffice;
function showOffice(obj){
	var oDiv = document.getElementById('office'+obj.value);
	if (oLastOffice)
		oLastOffice.style.display = 'none';
	oLastOffice = oDiv;
	oDiv.style.display = 'block';
}



function goToOffice(obj){
	window.location.href = '/BranchList.html?id=30&office=' + obj.value;
}
function setPage(page) {
    document.searchform.page.value = page;
    document.searchform.submit();
}



function showOffice(obj){
	var oDiv = document.getElementById('office'+obj.value);
	if (oLastOffice)
		oLastOffice.style.display = 'none';
	oLastOffice = oDiv;
	oDiv.style.display = 'block';
	if (obj.value != 31){
		document.getElementById('googlemaps').style.display="none";
	}else{
		document.getElementById('googlemaps').style.display="block";
	}
}
