function sama_checkSubmit_supportReq(){
	document.getElementById('DESCRIPTION-ID').style.backgroundColor = "#FFFFFF";
	document.getElementById('P-SECTION-ID').style.backgroundColor = "#FFFFFF";	
	document.getElementById('P-TYPE-ID').value = document.getElementById('CBO-PRODUCT-TYPE').selectedIndex; //0:web 1:mobile
 	var out = true;
	if(document.getElementById('DESCRIPTION-ID').value.length==0){
		document.getElementById('DESCRIPTION-ID').style.backgroundColor = "#ffd2e1";
		out = false;
	}
	if(document.getElementById('P-SECTION-ID').value.length==0){
		document.getElementById('P-SECTION-ID').style.backgroundColor = "#ffd2e1";
		out = false;
	}
	if(document.getElementById('P-TYPE-ID').value.length==0) out=false;
	return out;
}

function sama_checkSubmit_contactUs(){
	document.getElementById('MSG-ID').style.backgroundColor = "#FFFFFF";
	if(document.getElementById('MSG-ID').value.length==0){
		document.getElementById('MSG-ID').style.backgroundColor = "#ffd2e1";
		return false;
	}
	return true;
}

function sama_checkSubmit_supportThreadItem(){
	document.getElementById('TITLE-ID').style.backgroundColor = "#FFFFFF";
	document.getElementById('TEXT-ID').style.backgroundColor = "#FFFFFF";	
 	var out = true;
	if(document.getElementById('TITLE-ID').value.length==0){
		document.getElementById('TITLE-ID').style.backgroundColor = "#ffd2e1";
		out = false;
	}
	if(document.getElementById('TEXT-ID').value.length==0){
		document.getElementById('TEXT-ID').style.backgroundColor = "#ffd2e1";
		out = false;
	}
	return out;
}

function sama_showproduct_linkClick_submit(val){
	document.getElementById('HIDDEN-ID').value = val;
}

function sama_check_subscribeToNews(){
	if(document.getElementById('TXT-EMAIL-ID').value.length==0){
		return false;
	}
	var expression = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(!expression.test(document.getElementById('TXT-EMAIL-ID').value)){
		alert('Please enter a valid email address.');
		return false;
	}
	return true;
}