function checkSubmitSIS(obj){
	var eml=obj['email'].value
	var cmt=obj['comments'].value
	//if(!checkMail(eml)) {alert('Please, provide a valid email address!');return false;}
	//if(!trim(cmt)) {alert('Please, fill out comments about yourself and your business!');return false;}
	if(!checkMail(eml)) {return formMsg(obj['email'],'Please, provide a valid email address!');}
	if(!trim(cmt)) {return formMsg(obj['comments'],'Please, fill out comments about yourself and your business!');}
	 return true;
//alert(num & 8);alert(num & 7)
}


function checkSubmitContact(obj){
	//return true;
	var eml=obj['email'].value
	var cmt=obj['comments'].value
	var emltype=obj['emltype'].value
	if(!checkMail(eml)) {return formMsg(obj['email'],'Please, Enter a valid email address');}
	if(emltype==0) {return formMsg(obj['emltype'],"Plaese, choose one of the Nature of contact");}
	if(!trim(cmt)) {return formMsg(obj['comments'],'Please, fill out comments about yourself and your business!');}

	return true;
}


function sendRMA(obj){
	if(!obj['first_name'].value) {return formMsg(obj['first_name'],'Please, Enter the First Name');};
	if(!obj['last_name'].value) {return formMsg(obj['last_name'],'Please, Enter the Last Name');};
	if(!obj['zipcode'].value) {return formMsg(obj['zipcode'],'Please, Enter the Delivery ZIP code');};
	if(!obj['ordnum'].value) {return formMsg(obj['ordnum'],'Please, the Order Number');};
	if(!checkMail(obj['eml'].value)) {return formMsg(obj['eml'],'Please, Enter a valid email address');};
	if(!obj['content'].value) {return formMsg(obj['content'],'Please, Descrive the items to return');};
	return true;
}

function formMsg(obj, msg){
	alert(msg);
	obj.focus();obj.blur();
	drawMeII(obj,1)
	return false;
}

function drawMeII(obj,color){
	//if(obj.nodeName=="SELECT" && document.all) obj=obj.parentNode //obj=obj.options[0]//
	//if(obj.nodeName=="SELECT" && document.all) obj=obj.options[0]//
	if(!color) {
		obj.onclick="";
		//obj.className=obj.className.replace(" errbox",'');
		obj.className=obj.className.replace(/ ?errbox2/,'');
		obj.focus();
		if(document.getElementById("jserrmsg")) document.getElementById("jserrmsg").style.display="none"
		return
	}
	var cname=obj.className.replace(/ ?errbox2/,'')
	obj.className=cname+" errbox2";
	obj.onclick=function(){drawMeII(this)}
	//obj.onkeyup=function(){drawMe(this)}
}
