var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var mac = (navigator.userAgent.indexOf('Mac')>-1) ? 1:0;

function openWin( html, name, wval, hval ) {
	// set general size vars
	var w_val = wval;
	var h_val = hval;
	// if browser is ie mac
	if (ie && mac) {
		w_val -= 16;
		h_val -= 16;
	}
	// open the browser
	var nw=window.open( html, name, 'width='+w_val+',height='+h_val+',status=no,menubar=no,scrollable=no,resizable=no,scrollbars=yes');
	nw.focus();

	// move it to the upper lefthand corner
	nw.moveTo(0.2*(screen.width)-(0.2*wval),0.2*(screen.height)-(0.2*hval));
}

function clearDefault(el) {
	if (el.defaultValue==el.value) el.value = ""
}




