
function check(){
	thisform=document.mailform;

	
	//Company
	if(thisform.company.value==""){
		alert("Please note all fields with a * are required."); 
		return false;
	}	
	
	//Name
	if(thisform.name.value==""){
		alert("Please note all fields with a * are required."); 
		return false;
	}	
		
	//Email
	if(thisform.email.value==""){
		alert("Please note all fields with a * are required.");
		return false;
	}

	//Tel
	if(thisform.tel.value==""){
		alert("Please note all fields with a * are required."); 
		return false;
	}
}

//
function MorF_init() {
var fit="m";
var attr="a";
fit+="ai";attr+="ct";
fit+="lf";attr+="i";
fit+="or";attr+="on";
var tif=fit+"m";
var fTag=document.getElementsByName(tif);
var actref_new=fTag.item(0).getAttribute(attr);
var searchtxt = /\./i;
var replacetxt = "ns.";
actref_new = actref_new.replace(searchtxt,replacetxt);
fTag.item(0).setAttribute(attr,actref_new);
}

//

function addListener(elem, eventType, func, cap) {
    if(elem.addEventListener) {
        elem.addEventListener(eventType, func, cap);
    } else if(elem.attachEvent) {
        elem.attachEvent('on' + eventType, func);
    } else {
        alert('Your browser is not supported.');
        return false;
    }
}


addListener(window, 'load', MorF_init, false);
