function obj_Browser(){
	d=document;
	this.agt=navigator.userAgent.toLowerCase();
	this.major=parseInt(navigator.appVersion);
	this.dom=(d.getElementById);
	this.ns=(d.layers);
	this.ns4up=(this.ns && this.major>=4);
	this.ns6=(this.dom&&navigator.appName=="Netscape");
	this.op=(window.opera);
	if(d.all)this.ie=1;else this.ie=0;
	this.ie4=(d.all&&!this.dom);
	this.ie4up=(this.ie&&this.major>=4);
	this.ie5=(d.all&&this.dom);
	this.ie6=(d.nodeType);
	this.sf=(this.agt.indexOf("safari")!=-1);
	this.win=((this.agt.indexOf("win")!=-1)||(this.agt.indexOf("16bit")!=-1));
	this.winme=(this.agt.indexOf("win 9x 4.90")!=-1);
	this.xpsp2=(this.agt.indexOf("sv1")!=-1);
	this.mac=(this.agt.indexOf("mac")!=-1);
}
var oBw=new obj_Browser();




function dviPlayer(key) {
	diviPlayer = window.open('http://www.divicast.com/player/?key='+key,'player','width=460,height=400,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');
}




function sys_message(type, string){
	document.getElementById("sys_message").className = type;
	document.getElementById("sys_message").innerHTML = string;
}





function ValidateForm() {
	var dt=document.form_1.frm_release_time
	if (isDate(dt.value,"M/d/yyyy")==false){
		dt.focus()
		sys_message("msg_error", "Invalid date (MM/DD/YYYY)");
		return false
	}
    return true
 }

 
 
 
 
 
 
//Toggle Alt Email Mandatory notation
//switch layers for different browsers
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function hidelayer(lay) {
	if (ie4) {document.all[lay].style.visibility = "hidden";}
	if (ns4) {document.layers[lay].visibility = "hide";}
	if (ns6) {document.getElementById([lay]).style.display = "none";}
}

function showlayer(lay) {
	if (ie4) {document.all[lay].style.visibility = "visible";}
	if (ns4) {document.layers[lay].visibility = "show";}
	if (ns6) {document.getElementById([lay]).style.display = "block";}
}