if (document.images) {
}
function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

// function that displays status bar message
function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}

var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}


function openWindow(url) {
        popUpWin = window.open(url,'demoWin','toolbar=1,location=no,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600');

        if (navigator.appName == 'Netscape') {
                popUpWin.focus();
        }
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = 'yes';
  menubar_str = 'yes';
  statusbar_str = 'yes';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  width_str = width ? width : screen.width-10;
  height_str = height ? height : screen.height-160;
  window.open(url, name, 'left='+left+',top='+top+',width='+width_str+',height='+height_str+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function check_newsletter() {
	var form=document.interest;
	var complete=true;
	var error='';
	if(form.name.value.length <= 0 || form.name.value=='Name') error += ' - Please fill in your name\n';
	if(form.email.value.indexOf('@') < 1) error += ' - Please supply a valid e-mail\n';
	if(error != '') {
		alert(error);
		return false;
	}
	document.interest.submit();
 }
 
 function clearn(){
	 var form = document.interest;
	 if(form.name.value=='Name')
	 form.name.value='';
 }
 function cleare(){
	 var form = document.interest;
	 if(form.email.value=='E-mail')
	 form.email.value='';
 }
