function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function OpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function checkform() {
	if(notEmpty(document.contactForm.sName)) {
		if(notEmpty(document.contactForm.sCompanyName)) {
			if(notEmpty(document.contactForm.sAddress)) {
				if(notEmpty(document.contactForm.sTelephone)) {
					if(notEmpty(document.contactForm.sEmail)) {
						return true;
					}
				}
			}
		}
	}

	return false;
}

function notEmpty(elem) {
	var str = elem.value;
	if(str.length == 0) {
		alert("You must fill in all the required text boxes that are marked with (*)");
		return false;
	}
	else {
		return true;
	}
}
