var frmHeightArray = [["646","advisors.htm"],["844","congress_interviews.htm"],["1394","experts.htm"],["611","guides_gen.htm"],["696","guides_pract.htm"],["2197","legal.htm"],["1218","links.htm"],["738","main.htm"],["1098","privacy.htm"],["611","store_con.htm"],["696","store_ther.htm"],["784","customerinfo.aspx"],["611","contactus.aspx"]];

function setFrmHeight() {
	var _dHeight = 600;
	
// alert("DOMAIN is " + document.domain);	
	
	document.getElementById('main').height=_dHeight;
	document.getElementById('left').height=_dHeight;
	
	if (document.getElementById('main').contentWindow.document.body.scrollHeight > 600 || document.getElementById('main').contentWindow.document.body.scrollHeight == 0) {

		if (document.getElementById('main').contentWindow.document.body.scrollHeight != 0) {
			document.getElementById('main').height=document.getElementById('main').contentWindow.document.body.scrollHeight;
			document.getElementById('left').height=document.getElementById('main').contentWindow.document.body.scrollHeight;
		}
		
		for (i=0; i<frmHeightArray.length; i++) {
			if (document.getElementById('main').contentWindow.document.location.href.indexOf(frmHeightArray[i][1]) != -1) {
				document.getElementById('main').height=frmHeightArray[i][0];
				document.getElementById('left').height=frmHeightArray[i][0];
			}
		}
	}

// alert("HEIGHT is " + document.getElementById('main').contentWindow.document.body.scrollHeight + " == " + document.getElementById('main').contentWindow.document.location.href);	
	
}

function doCartSubmit(_productID) {

// alert("INSIDE CART SUBMIT ");

   document.getElementById('setProductID').value = _productID;
   document.getElementById('doCart').submit();
}

function doSSLTarget(target) {

   path = "https://secure.hsab.org/index.aspx?t=" + target;
   top.location=path;
}

function navRequestSubmit(_target) {

// alert("INSIDE navRequest " + _target);


	document.getElementById('setTarget').value = _target;
	document.getElementById('doTarget').submit();
}
