function divmo(obj) {
	obj.style.fontWeight = "bold";
}
		
function divmot(obj) {
	obj.style.fontWeight = "normal";
}

function lxdivmo(divid) {
	document.getElementById(divid).style.fontWeight = "bold";
}
		
function lxdivmot(divid) {
	document.getElementById(divid).style.fontWeight = "normal";
}

function lxGetWindowHeight() {
	var wht = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		wht = window.innerHeight;
	} else if( document.documentElement && document.documentElement.clientHeight ) {
		//IE 6+ in 'standards compliant mode'
		wht = document.documentElement.clientHeight;
	} else if( document.body && document.body.clientHeight ) {
		//IE 4 compatible
		wht= document.body.clientHeight;
	}
	return wht;
}

function adjustmaintext(aht) {
	var wht = lxGetWindowHeight();
	if ( wht > 0 ) {
		document.getElementById('maintext').style.height=wht-aht;
	}
}

function lxAdjustIFrameHeights(aht) {
	var wht = lxGetWindowHeight();
	if ( wht > 0 ) {
		document.getElementById("rframe").height = wht-aht;
		document.getElementById("lframe").height = wht-aht;
	}
}

function checkDirectLoad(tloc, iloc) {
	var wloc = parent.document.URL;
	if ( (wloc.lastIndexOf(tloc) == wloc.length-tloc.length ) ) {
		window.location = iloc;
		return false;
	}
	return true;
}

function emailCheck( str ) {
	var iAt = str.indexOf("@");
	if ( iAt < 1 ) {
		alert("Please Enter a Vaild E-mail Address");
		return false;
	}
	var iDot = str.indexOf(".", iAt+2);
	if (( iDot < 0 ) || (iDot == str.length-1)) {
		alert("Please Enter a Vaild E-mail Address");
		return false;
	}
	return true;
}
		
function ValidateForm() {
	return emailCheck( document.request_form.email.value );
}

function lxMailTo(addr, dom) {
	var l = "mailto:";
	l = l + addr
	l = l + "@";
	l = l + dom;
	window.location = l;
}