
//
function check(){
	thisform=document.mailform;

	
	//name
	if(thisform.name.value==""){
		alert("Please fill out all fields in the form."); 
		return false;
	}	

		
	//Email
	if(thisform.email.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}
	
	//company
	if(thisform.company.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}
	
	//occupation
	if(thisform.occupation.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}
	
	//tel
	if(thisform.tel.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}
	
	//address
	if(thisform.address.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}
	
	//mailtxt
	if(thisform.mailtxt.value==""){
		alert("Please fill out all fields in the form.");
		return false;
	}


}

//
function Pwin(W,H)
{

window.onerror=null;
var Winfig=window.open("","pamph", 'menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1,width='+W+',height='+H+',left=0,top=0');
Winfig.focus();
}

//
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('Not supported');
        return false;
    }
}


addListener(window, 'load', MorF_init, false);
