function validate1(){
	var doc,str,s;
	doc=document.mica;
	s=0;
	
	if(!doc.name.value.length){
	alert("Please Enter the Name");
	doc.name.focus();
	return false;
	}
	if(doc.name.value.indexOf('<')!=-1 || doc.name.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Name");
	doc.name.focus();
	return false;
	}
	if(!doc.title.value.length){
	alert("Please Enter the Title");
	doc.title.focus();
	return false;
	}
	if(doc.title.value.indexOf('<')!=-1 || doc.title.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Title");
	doc.title.focus();
	return false;
	}
	if(!doc.company.value.length){
	alert("Please Enter the Company");
	doc.company.focus();
	return false;
	}
	if(doc.company.value.indexOf('<')!=-1 || doc.company.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Company");
	doc.company.focus();
	return false;
	}
	if(!doc.address.value.length){
	alert("Please Enter the Address");
	doc.address.focus();
	return false;
	}
	if(doc.address.value.indexOf('<')!=-1 || doc.address.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Address");
	doc.address.focus();
	return false;
	}
	if(isNaN(doc.telephone.value)){
	alert("Please Enter Numeric value in Telephone");
	doc.telephone.value="";
	doc.telephone.focus();
	return false;
	}
	if(isNaN(doc.faxnumber.value)){
	alert("Please Enter Numeric value In Faxnumber");
	doc.faxnumber.value="";
	doc.faxnumber.focus();
	return false;
	}
	if(!doc.email.value.length){
	alert("Please Enter the Email");
	doc.email.focus();
	return false;
	}
	if(doc.email.value.indexOf('@')==-1 || doc.email.value.indexOf('.')==-1){
	alert("Please Enter the Email Correctly");
	doc.email.value="";
	doc.email.focus();
	return false;
	}
	if(doc.email.value.indexOf('<')!=-1 || doc.email.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Email");
	doc.email.focus();
	return false;
	}
	if(!doc.products_interested.value.length){
	alert("Please Enter the Products Interested");
	doc.products_interested.focus();
	return false;
	}
	if(doc.products_interested.value.indexOf('<')!=-1 || doc.products_interested.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Products Interested");
	doc.products_interested.focus();
	return false;
	}
	if(!doc.required_specifications.value.length){
	alert("Please Enter the Required Specifications");
	doc.required_specifications.focus();
	return false;
	}
	if(doc.required_specifications.value.indexOf('<')!=-1 || doc.required_specifications.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Required Specifications");
	doc.required_specifications.focus();
	return false;
	}
	if(!doc.requirement.value.length){
	alert("Please Your Requirement");
	doc.requirement.focus();
	return false;
	}
	if(!doc.pricing.value.length){
	alert("Please Enter the Pricing");
	doc.pricing.focus();
	return false;
	}
	if(isNaN(doc.pricing.value)){
	alert("Please Enter Numeric Value In Pricing");
	doc.pricing.value="";
	doc.pricing.focus();
	return false;
	}
	if(!doc.comments.value.length){
	alert("Please Enter the Comments");
	doc.comments.focus();
	return false;
	}
	if(doc.comments.value.indexOf('<')!=-1 || doc.comments.value.indexOf('>')!=-1){
	alert("Please Don't Use HTML Tags In Comments");
	doc.comments.focus();
	return false;
	}
	}
	function validate2(){
	var doc,str,s;
	doc=document.mf;
	s=0;
	
	if(!doc.email.value.length){
	alert("Please Enter the Email");
	doc.email.focus();
	return false;
	}
	if(doc.email.value.indexOf('@')==-1 || doc.email.value.indexOf('.')==-1){
	alert("Please Enter the Email Correctly");
	doc.email.value="";
	doc.email.focus();
	return false;
	}
	if(!doc.femail.value.length){
	alert("Please Enter the Femail");
	doc.femail.focus();
	return false;
	}
	if(doc.femail.value.indexOf('@')==-1 || doc.femail.value.indexOf('.')==-1){
	alert("Please Enter the Femail Correctly");
	doc.femail.value="";
	doc.femail.focus();
	return false;
	}
}

function translator(pattern) {
	var open_in_same_window = 1;
	var my_location = unescape(document.location.toString());
	var new_location ='';
	var new_pattern = '';
	if (my_location.indexOf('translate_c?') != -1) {
		/// From google...
		var indexof_u = my_location.indexOf('u=');
		if (indexof_u == -1) {
			new_location = document.location;
		}
		else {
			var subs = my_location.substring(indexof_u, my_location.length);
			var ss = subs.split('&');
			new_location = ss[0].substring(2, ss[0].length);
		}
	}
	else {
		new_location = document.location;
	}

	indexof_p = pattern.indexOf('|');

	var isen = '';
	if (indexof_p == -1) {
		indexof_p1 = pattern.indexOf('><');
		if (indexof_p1 == -1) {
			new_pattern = pattern;
			if (pattern == 'en') {
				isen = 1;
			}
		}
		else {
			var psplit =pattern.split('><');
			new_pattern = psplit[0]+'|'+psplit[1];
			if (psplit[1] == 'en') {
				isen = 1;
			}
		}
	}
	else {
		var psplit = pattern.split('|');
		new_pattern = psplit[0]+'|'+psplit[1];
		if (psplit[1] == 'en') {
			isen = 1;
		}
	}

	var thisurl = '';
	if (isen == 1) {
		thisurl = new_location;
	}
	else {
		thisurl = 'http://translate.google.com/translate_c?langpair=' + new_pattern + "&u=" + new_location;
	}

	if (open_in_same_window == 1) {
		window.location.href = thisurl;
	}
	else {
		if (CanAnimate ){
			msgWindow=window.open('' ,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl;
		}
		else {
			msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
		}
	}
}
