// JavaScript Document
if (document.images) {
Ilogobye_01_01 = new Image(150, 51);Ilogobye_01_01.src = 'images/logoby-e_01_01.gif';
Ilogobye_01_01o = new Image(150, 51);Ilogobye_01_01o.src = 'images/logoby-e_01_01_over.gif';
}
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 fnValidateReg(){
	if (theform('companyname').value=='') {
	  theform('companyname').focus();
	  alert('please enter your company name');
	} else
	if (theform('firstname').value=='') {
	  theform('firstname').focus();
	  alert('please enter your first name');
	} else
	if (theform('lastname').value=='') {
	  theform('lastname').focus();
	  alert('please enter your last name');
	} else
	if (theform('tradingname').value=='') {
	  theform('tradingname').focus();
	  alert('please enter your trading name');
	} else
	if (theform('address').value=='') {
	  theform('address').focus();
	  alert('please enter your trading address');
	} else
	if (theform('suburb').value=='') {
	  theform('suburb').focus();
	  alert('please enter your suburb');
	} else
	if (theform('postcode').value=='') {
	  theform('postcode').focus();
	  alert('please enter your post code');
	} else
	if (theform('email').value=='') {
	  theform('email').focus();
	  alert('please enter your email address');
	} else
	if (theform('phone').value=='') {
	  theform('phone').focus();
	  alert('please enter a contact telephone number');
	} else
	if (theform('transactions').value=='') {
	  theform('transactions').focus();
	  alert('please enter your anticipated transactions per month');
	} else
	if (!radioButton(WhereHear)) {
	  alert('please indicate where you heard of us');
	} else {
		theform('Submit').value='true';
		theform.submit();
	}
}