<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding("UTF-8");

/* Display current internal character encoding */
//echo mb_internal_encoding();
?>

 
 <script language=javascript>
 
 function isMobile() {
  try{ document.createEvent("TouchEvent"); return true; }
  catch(e){ return false; }
}

	var w = 850; var h = 520; 
	var left = (screen.width/2)-(w/2);
	var top = (screen.height-h)/2-50;
	var Pos1 = "top="+top+", Left="+left+", width="+w+", height="+h+" ";
	
var oPenFrm="login.php";
   
 //if(isMobile()==true){ oPenFrm="LoginMobile.asp";	}
 if(isMobile()==true){ oPenFrm="login.php";	}
 
 //alert(isMobile() + "  /  " + oPenFrm);
 
	window.location.assign(oPenFrm);
	
//var NewWindow = window.open( oPenFrm,    Pos1+ ",resizable=yes, Linkbar=0, addressbar=no, directories=no, titlebar=no,toolbar=no,location=no,status=yes, menubar=yes, scrollbars=yes, modal=yes, copyhistory=no"); 
//  NewWindow.focus();
 
//document.write("isMobile=" + isMobile());


    var w1="width="+(screen.width-20);
	var h1=" height="+(screen.height-100);
	// var param1="toolbar=0 caption=yes, directories=no, location=yes, status=yes, scrollbars=yes, menubar=no, resizable=yes,top=0,left=0,"+w1+","+h1;
	//var newwin=window.open("Login.asp","newWin",param1);
    //newwin.focus();
	
	  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  // alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
  
 </script>
