dom = (document.getElementById)?(true):(false);
ie = document.all;
ieMN = document.all;
ie4 = ie && !dom;
nn4 = document.layers;
var userAgent=navigator.userAgent;
var opera=(window.userAgent.indexOf('Opera')!=-1);

visible = (nn4)?('show'):('visible');
hidden = (nn4)?('hide'):('hidden');

function show_no(document,w,h) {
 	window.open(document, "newwindow", "status=no,scrollbars=no,menubar=no,width="+w+",height="+h);
 }
 function show_sc(document,w,h) {
 	window.open(document, "newwindow", "status=no,scrollbars=yes,menubar=no,width="+w+",height="+h);
 }

 function show(document,w,h) {
 	window.open(document, "newwindow", "status=yes,scrollbars=yes,menubar=yes,width="+w+",height="+h);
 }
function alignwin(s)
{
	s.screenX=200;
	s.screenY=200;
	focus(s);
}

function isEmail(field)
{
	var s=field.value;
	if (/[^@]+@+/.test(s)) return true;
	return false;
}

function isEmpty(field)
{
	var s=field.value;
	if (s==null||s.lengh==0) return true;
	return !/\S/.test(s);
}
