<script>
//<![CDATA[
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
var refUrl = document.referrer; // Get the URL where the user came from
var prevUrl = refUrl.substr(7,16); // Create a substring after 'http://' and '.com'
var mobileUrl = "medicine.6te.net"; // String from mobile site URL; must match prevUrl
// Run auto-redirect only if the user is on mobile and isn't from m.azharkamar.com
if ((mobile) && !(prevUrl == mobileUrl)) {
document.location = "http://medicine.6te.net";
}
//]]>
</script>