<!--

function cl(){

	if(document.layers)

		document.moving.visibility="hide";

	else

		document.all.moving.style.visibility="hidden";

}



function quote(){

	var cost=0;

	var tot=0;

	

	source1=document.aa.source.selectedIndex;

	source=document.aa.source.options[source1].value;

	target1=document.aa.target.selectedIndex;

	target=document.aa.target.options[target1].value;

	category1=document.aa.category.selectedIndex;

	category=document.aa.category.options[category1].value;

	word=document.aa.word.value;

	

	if(source==""){

		alert("Please Select Source Language!");

		return false;

		}

	if(target==""){

		alert("Please Select Target Language!");

		return false;

		}

	if(category==""){

		alert("Please Select Category!");

		return false;

		}

	if(word=="" || isNaN(word) || word<1){

		alert("Please enter Word Count!");

		document.aa.word.focus();

		return false;

	}

	if(target==source){

		alert("You have selected same language for Source & Target!");

		return false;

	}

	

	if(source=="English"){

		if(target=="French" || target=="Italian" || target=="Portuguese" ||  target=="Spanish" || target=="Russian"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.08;

			if(category=="Engg.")

				cost=0.09;

			if(category=="Legal")

				cost=0.10;

				tot=cost*word;

		}

		if(target=="Chinese" || target=="Japanese" || target=="Korean" ||  target=="Somali"){

			if(category=="Simple")

				cost=0.12;

			if(category=="Commr.")

				cost=0.13;

			if(category=="Engg.")

				cost=0.14;

			if(category=="Legal")

				cost=0.14;

			tot=cost*word;

		}

		if(target=="Indonesian" || target=="Malay" || target=="Greek" ||  target=="Singaporean" || target=="Vietnamese"){

			if(category=="Simple")

				cost=0.10;

			if(category=="Commr.")

				cost=0.11;

			if(category=="Engg.")

				cost=0.12;

			if(category=="Legal")

				cost=0.12;

			tot=cost*word;

		}

		if(target=="Pushto" || target=="Persian" || target=="Parsi" || target=="Dari"  || target=="Arabic"){

			if(category=="Simple")

				cost=0.10;

			if(category=="Commr.")

				cost=0.10;

			if(category=="Engg.")

				cost=0.11;

			if(category=="Legal")

				cost=0.11;

			tot=cost*word;

		}

		if(target=="Thai"){

			if(category=="Simple")

				cost=0.09;

			if(category=="Commr.")

				cost=0.095;

			if(category=="Engg.")

				cost=0.10;

			if(category=="Legal")

				cost=0.11;

			tot=cost*word;

		}	

		if(target=="Armenian" || target=="Ukrainian" || target=="Slovenian" ||  target=="Serbian" || target=="Croatian" || target=="Czech"){

			if(category=="Simple")

				cost=0.14;

			if(category=="Commr.")

				cost=0.14;

			if(category=="Engg.")

				cost=0.15;

			if(category=="Legal")

				cost=0.16;

			tot=cost*word;

		}	

		if(target=="Albanian" || target=="Danish" || target=="Norwegian" ||  target=="Polish" || target=="Dutch" || target=="Serbo-Croatian" || target=="Swedish" ||  target=="Latin" || target=="Hebrew" || target=="Hungarian" || target=="Bulgarian" ||  target=="Belgian" || target=="Turkish" || target=="Bosnian" || target=="Macedonian" ||  target=="Romanian"){

			if(category=="Simple")

				cost=0.15;

			if(category=="Commr.")

				cost=0.15;

			if(category=="Engg.")

				cost=0.16;

			if(category=="Legal")

				cost=0.16;

			tot=cost*word;

		}

		if(target=="Burmese" || target=="Baluchi" || target=="Singhalese" ||  target=="Tagalog" || target=="Tibetan"){

			if(category=="Simple")

				cost=0.13;

			if(category=="Commr.")

				cost=0.13;

			if(category=="Engg.")

				cost=0.14;

			if(category=="Legal")

				cost=0.14;

			tot=cost*word;

		}

		if(target=="Hindi" || target=="Urdu" || target=="Sanskrit" || target=="Nepali"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.08;

			if(category=="Engg.")

				cost=0.09;

			if(category=="Legal")

				cost=0.09;

			tot=cost*word;

		}

		if(target=="Telugu" || target=="Tamil" || target=="Kanad" || target=="Malayalam"  || target=="Bangla" || target=="Assamese" || target=="Oriya" || target=="Gujarati" ||  target=="Marathi" || target=="Dogri" || target=="Punjabi" || target=="Sindhi"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.075;

			if(category=="Engg.")

				cost=0.08;

			if(category=="Legal")

				cost=0.08;

			tot=cost*word;

		}

		if(target=="Bhojpuri" || target=="Chattisgarhi" || target=="Konkani" ||  target=="Garo" || target=="Maithili" || target=="Manipuri" || target=="Mizo" || target=="Mundari"  || target=="Santhali" || target=="Tulu" || target=="Tripui"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.09;

			if(category=="Legal")

				cost=0.09;

			tot=cost*word;

		}

		if(target=="German"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.08;

			if(category=="Engg.")

				cost=0.85;

			if(category=="Legal")

				cost=0.85;

			tot=cost*word;

		}

	}

	if(target=="English"){

		if(source=="French" || source=="Italian" || source=="Portuguese" ||  source=="Spanish" || source=="Russian"){

			if(category=="Simple")

				cost=0.06;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.08;

			if(category=="Legal")

				cost=0.085;

			tot=cost*word;

		}

		if(source=="Chinese" || source=="Japanese" || source=="Korean" ||  source=="Cantonese"){

			if(category=="Simple")

				cost=0.10;

			if(category=="Commr.")

				cost=0.11;

			if(category=="Engg.")

				cost=0.12;

			if(category=="Legal")

				cost=0.12;

			tot=cost*word;

		}

		if(source=="Indonesian" || source=="Malay" || source=="Brunei" ||  source=="Singaporean" || source=="Vietnamese"){

			if(category=="Simple")

				cost=0.08;

			if(category=="Commr.")

				cost=0.085;

			if(category=="Engg.")

				cost=0.09;

			if(category=="Legal")

				cost=0.095;

			tot=cost*word;

		}

		if(source=="Pushto" || source=="Persian" || source=="Swahili" || source=="Dari"  || source=="Arabic"){

			if(category=="Simple")

				cost=0.09;

			if(category=="Commr.")

				cost=0.09;

			if(category=="Engg.")

				cost=0.10;

			if(category=="Legal")

				cost=0.10;

			tot=cost*word;

		}

		if(source=="Thai"){

			if(category=="Simple")

				cost=0.08;

			if(category=="Commr.")

				cost=0.08;

			if(category=="Engg.")

				cost=0.09;

			if(category=="Legal")

				cost=0.09;

			tot=cost*word;

		}	

		if(source=="Armenian" || source=="Ukrainian" || source=="Slovenian" ||  source=="Serbian" || source=="Croatian" || source=="Czech"){

			if(category=="Simple")

				cost=0.11;

			if(category=="Commr.")

				cost=0.12;

			if(category=="Engg.")

				cost=0.13;

			if(category=="Legal")

				cost=0.13;

			tot=cost*word;

		}	

		if(source=="Albanian" || source=="Danish" || source=="Norwegian" ||  source=="Polish" || source=="Dutch" || source=="Serbo-Croatian" || source=="Swedish" ||  source=="Latin" || source=="Hebrew" || source=="Hungarian" || source=="Bulgarian" ||  source=="Belgian" || source=="Turkish" || source=="Bosnian" || source=="Macedonian" ||  source=="Romanian"){

			if(category=="Simple")

				cost=0.13;

			if(category=="Commr.")

				cost=0.13;

			if(category=="Engg.")

				cost=0.14;

			if(category=="Legal")

				cost=0.14;

			tot=cost*word;

		}

		if(source=="Burmese" || source=="Baluchi" || source=="Singhalese" ||  source=="Tagalog" || source=="Tibetan" || source=="Nepali"){

			if(category=="Simple")

				cost=0.11;

			if(category=="Commr.")

				cost=0.12;

			if(category=="Engg.")

				cost=0.12;

			if(category=="Legal")

				cost=0.13;

			tot=cost*word;

		}

		if(source=="Hindi" || source=="Urdu" || source=="Sanskrit"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.07;

			if(category=="Legal")

				cost=0.08;

			tot=cost*word;

		}

		if(source=="Telugu" || source=="Tamil" || source=="Kanad" || source=="Malayalam"  || source=="Bangla" || source=="Assamese" || source=="Oriya" || source=="Gujarati" ||  source=="Marathi" || source=="Dogri" || source=="Punjabi" || source=="Sindhi"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.07;

			if(category=="Legal")

				cost=0.07;

			tot=cost*word;

		}

		if(source=="Bhojpuri" || source=="Chattisgarhi" || source=="Bodo" ||  source=="Garo" || source=="Maithili" || source=="Manipuri" || source=="Mizo" || source=="Mundari"  || source=="Santhali" || source=="Tulu" || source=="Tripui"){

			if(category=="Simple")

				cost=0.07;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.07;

			if(category=="Legal")

				cost=0.07;

			tot=cost*word;

		}

		if(source=="German"){

			if(category=="Simple")

				cost=0.065;

			if(category=="Commr.")

				cost=0.07;

			if(category=="Engg.")

				cost=0.075;

			if(category=="Legal")

				cost=0.075;

			tot=cost*word;

		}

	}

		

		if(tot!=0){

		msg="<table border=1 bordercolor=#FF0000 bgcolor=#FFFFFF cellspacing=0 cellpadding=0><tr><td bgcolor=#FFFFCC colspan=2 align=center width=200><font size=2><b>Your Quote &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" class=aa title=Close onclick=\"return cl();\">X</a></b></font></td></tr>"

		msg=msg+"<tr><td><font size=2>Source&nbsp;Language</font> </td><td><font size=2>"+source;

		msg=msg+"</font></td></tr><tr><td><font size=2>Target&nbsp;Language</font> </td><td><font size=2>"+target;

		msg=msg+"</font></td></tr><tr><td><font size=2>Category</font> </td><td><font size=2>"+category;

		msg=msg+"</font></td></tr><tr><td><font size=2>Word Count</font> </td><td><font size=2>"+word;

		msg=msg+"</font></td></tr><tr><td><font size=2>Total Cost</font> </td><td><font size=2>$"+tot;

		msg=msg+"</font></td></tr>";

		msg=msg+"<tr><td colspan=2 align=center><a href=/old/quote.php3?sl="+source+"&tl="+target+"&c="+category+"&w="+word+"&t="+tot+"&msg=no\" class=aa><font color=blue><u>Email now</u></font></a></td></tr></table>";		

		

		if(document.layers)

		document.moving.visibility="show";

		else

		document.all.moving.style.visibility="visible";

		



		if(document.layers){

		document.moving.document.open();

		document.write(msg);

		document.moving.document.close();

	}

	else{

		moving.innerHTML=msg;

		}

		

	}

	else

		 	window.location="/old/quote.php3?sl="+source+"&tl="+target+"&c="+category+"&w="+word+"&msg=yes";

}

-->

