function setFieldValue(fieldRef, str) {
	// clears field when user clicks in, 
	// and resets to default str when user clicks out 
	// with no value in the field.
	obj = eval(fieldRef);
	if (obj.value == str) {
		obj.value = "";
	}
	else if (obj.value == "") {
		obj.value = str;
	}
}

function ieW() {
	if (navigator.appName.indexOf('Microsoft Internet Explorer') == 0) {
		var Ps = document.getElementsByTagName('P');
		var TDs = document.getElementsByTagName('TD');
		if (Ps) {
			for (a=0; a<Ps.length; a++) {
				if (Ps[a].firstChild != null) {				
					if (Ps[a].firstChild.nodeName == '#text') {
						var para = Ps[a].firstChild.nodeValue;
						if (para.indexOf('W') == 0) {
						Ps[a].className='fixW';
						}
					}
					else if (Ps[a].firstChild.nodeName == 'EM'){
						var emph = Ps[a].firstChild
						if (emph.firstChild.nodeName == '#text') {
						var emphText = emph.firstChild.nodeValue;
							if (emphText.indexOf('W') == 0) {
							Ps[a].className='fixW';
							}
						}
					}  
				}
			}
		}
		if (TDs) {
			for (a=0; a<TDs.length; a++) {
				if (TDs[a].firstChild != null) {				
					if (TDs[a].firstChild.nodeName == '#text' && TDs[a].className != ''){
						var para = TDs[a].firstChild.nodeValue;
						if (para.indexOf('W') == 0) {
						TDs[a].className='fixW';
						}
					}
				}
			}
		}
	}
}

function getHeights() {

	
	var nav = document.getElementById('nav2');
	var bodyHead = document.getElementById('bodyHead');
	var col1 = document.getElementById('col1');
	if (findElement('col2')) {
		var col2 = document.getElementById('col2');}
	else {
		var col2 = document.getElementById('col1');}

	if (bodyHead && col1 && col2) {
		var navHeight = nav.offsetHeight;
		var bodyHeadHeight = bodyHead.offsetHeight;
		var col1Height = col1.offsetHeight;
		var col2Height = col2.offsetHeight;
		
		
		
		if (col1Height > col2Height) {
		var bodyHeight = col1Height;
		}
		else {
		var bodyHeight = col2Height;
		}
	
		
		var combinedHeight = bodyHeight + bodyHeadHeight;
		if (combinedHeight < navHeight) {
		
		var gap = navHeight - combinedHeight;
			if (col1Height > col2Height) {
				col1.style.height = col1Height + gap + 'px';
			}
			
			if (col1Height < col2Height) {
				col2.style.height = col2Height + gap + 'px';
			}		
			else {
				col2.style.height = col2Height + gap + 'px';
	
			}
		}
	}
}



function findElement(colName) {
	var eleNo = document.getElementsByTagName('DIV');
	for (i=0;i<eleNo;i++) {
		if (document.all[i].id==colName) {
			return true;
		}
	}
	return false;
	
}
/*

function open_callme() {
  
var link_url = document.URL;
var wt= window.screen.width;
var ht= window.screen.height;
wt = 0.72 * wt;
ht = 0.85 * ht;
window.open("http://www.gehealthcare.com/huhu/contact/contact_form.html?"+link_url,"abc_123","toolbar=no,Scrollbars=1,height="+
ht+",width="+wt+",top=10,left=100");
}
*/

function open_callme() 
{
location.href = "http://www.gehealthcare.com/huhu/contact/contact_form_address.html?"+document.URL;
}
