// Clear text input form fields
function clearTxt (o) {
	if (o) {
	//object exists
		switch (o.type) {
			case 'text':
				o.value = '';
			case 'textarea': 
				o.value = '';
			default:
				return false;
		}
		return true;
	} else {
		return false;
	}
}
function resetForm (frm){
	if (frm.length) {
		for (i=0; i < frm.length; i++) {
			fld = frm[i];
			if (fld.type=='text' || fld.type=='textarea') {
				fld.value = '';
			}	
		}
	}
	return true;
}


function popwindow(link)  {
var popupWin= window.open(link, 'popWin', 'width=780,height=600,left=10,top=10,screenX=10,screenY=10,toolbar=no,status=no,menubar=no,scrollbars=yes,resizeable=yes') 
}


function errorHandler(msg, url, line) {
        return true;
}       
window.onerror=errorHandler;



