function on(pic,pth)   { document.images[pic].src = pth+'i/menu/'+pic+'_2.jpg'; }
function off(pic,pth)  { document.images[pic].src = pth+'i/menu/'+pic+'_1.jpg'; }

function do_diligance(val)
{
	if(document.frmfrm.fld1.value=='' || document.frmfrm.fld2.value=='' || document.frmfrm.fld3.value=='' || document.frmfrm.fld4.value=='')
	{
		alert('The form is incomplete or is filled incorrectly. Please check the fields marked with an asterisk (*).');
		return;
	}

var mail = document.frmfrm.fld2.value;
if(!mail.match(/^[A-Za-z0-9\.\_\-]{1,32}\@[A-Za-z0-9\.\_\-]{1,32}\.[a-zA-Z]{2,6}$/))
{
alert('Please check the E-mail!');
return false;
}


	document.frmfrm.what.value=val;
	document.frmfrm.submit();
}

function do_diligance2()
{
	document.frmfrm.submit();
}
 
function popupWindow(goLocation,wname,wdth,hght,stl)
{
 var v=parseInt(navigator.appVersion);
 isNetscape=navigator.appName.indexOf('Netscape')>=0;
 isExplorer=navigator.appName.indexOf('Explorer')>=0;

 var ww = wdth;
 var wh = hght;

 positionCode='';
 if(v>=4)
 {
  if(isExplorer) positionCode='left='+(screen.width/2-ww/2)+',top='+(screen.height/2-wh/2)+',';
  if(isNetscape) positionCode='screenX='+(screen.width/2-ww/2)+',screenY='+(screen.height/2-wh/2)+',';
 }

 newWindow=window.open(goLocation,wname,
 'width='+ww+',height='+wh+','+
 positionCode+
 'location=0,'+
 'toolbar=1,'+
 'scrollbars=1,'+
 'status=0,'+
 'resizable=1');
  if(v>=3) newWindow.focus();
  return false;
}


