function check()
{

	var lang;

	if (navigator.appName == 'Netscape') {
			lang = navigator.language;
	} else {
			lang = navigator.browserLanguage;
	}


	if (navigator.appName=="Microsoft Internet Explorer" && (5 >= parseInt(navigator.appVersion))) {
	} else 	{

		if (navigator.appName=="Netscape" && (6 <= parseInt(navigator.appVersion))) {
		} else {

				switch (lang)
				{
						case 'en':
						{
								window.location.href="http://server2.iranvajahan.net/error_en.shtml";
								break;
						}
			
						case 'de':
						{
								window.location.href="http://server2.iranvajahan.net/error_de.shtml";
								break;
						}

						case 'fr':
						{
								window.location.href="http://server2.iranvajahan.net/error_fr.shtml";
								break;
						}

						case 'fa':
						{
								window.location.href="http://server2.iranvajahan.net/error_fa.shtml";
								break;
						}

						default:
						{
								window.location.href="http://server2.iranvajahan.net/error_en.shtml";
						}
				}
		}
	}

}