function LoginFocus() {
	document.login.userID.focus()
}
function checkForm() {
   document.login.userID.value = RemoveBad(document.login.userID.value);
   return false;
}

//******************************************************
//Description: Removes bad characters.
//******************************************************

function RemoveBad(strTemp) {
strTemp2=new String(strTemp);
   strTemp2 = strTemp2.replace(/[\[\]\*{}<>\"\'%;\()&+-]/g, "");
   return strTemp2;
}

function showVideo() {
	if ( Detect_iOS() || (navigator.userAgent.match(/Android/i)) ) {

		var detectVideoSupport = function (){
	    var detect = document.createElement('video') || false;
	    this.html5 = detect && typeof detect.canPlayType !== "undefined";
	    this.mp4 = this.html5 && (detect.canPlayType("video/mp4") === "maybe" || detect.canPlayType("video/mp4") === "probably");
	    this.ogg = this.html5 && (detect.canPlayType("video/ogg") === "maybe" || detect.canPlayType("video/ogg") === "probably");
	    return this;
		};
	
		var video = detectVideoSupport();
		//Both Opera and Firefox support OGG but lack MP4 support
		if(video.ogg && !video.mp4){
			strVideo = "<iframe src=\"/video.html\" width=\"300\" height=\"225\" scrolling=\"no\" frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\"></iframe>"
		} else {
			strVideo = "<video id=\"vidWebVend\" width=\"300\" height=\"225\" controls><source src=\"WebVend_Solutions_500kbps_avg.mp4\" type=\"video/mp4\"></source></video>"
		}
	} else {
		strVideo = "<iframe src=\"/video.html\" width=\"300\" height=\"225\" scrolling=\"no\" frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\"></iframe>"
	}
	document.getElementById("divVideo").innerHTML = strVideo;
}
