pic1 = new Image ();
pic1.src = "images/menubg1.gif";

pic2 = new Image ();
pic2.src = "images/menubg2.gif";

pic3 = new Image ();
pic3.src = "images/menubg3.gif";

pic4 = new Image ();
pic4.src = "images/menubg4.gif";

function open_wind_radio(id,w,h){
	var x=(screen.width/2)-(w/2);var y=(screen.height/2)-(h/2);
	window.open(id, 'email' ,config='left='+x+', top='+y+', height='+h+', width='+w+', scrollbars=no, resizable=no,location=no').focus(); 
}

function reg_go() {
var flag;
flag = 0;
if (document.fvotereg.num.value == "") {
	document.fvotereg.num.focus();
	flag=1;
	}	
if (document.fvotereg.email.value == "") {
	document.fvotereg.email.focus();
	flag=1;
	}	
if (document.fvotereg.pwd2.value == "") {
	document.fvotereg.pwd2.focus();
	flag=1;
	}	
if (document.fvotereg.pwd.value == "") {
	document.fvotereg.pwd.focus();
	flag=1;
	}	
if (document.fvotereg.usr.value == "") {
	document.fvotereg.usr.focus();
	flag=1;
	}	
if (flag == 1) {
	alert("Enter all info");
	}
if (flag == 0) {
	document.fvotereg.submit();
	}
}
function srch_go(t) {
	var forma  = document.getElementById(t);
	forma.submit();
}

function make_active_pr(id) {
	document.getElementById(id).className="active_pr";
}
function make_active_pr2(id) {
	document.getElementById(id).className="active_pr2";
}

function make_active(id) {
	document.getElementById(id).className="active";
}

function make_inactive(id) {
	document.getElementById(id).className="normal";
}

function dosubmit() {
	if (document.srch_form.srch_w.value!='') {
		return true;
	}
	else {
		return false;
	}
}
function form_submit_broad(forr,c) {	
	var forma = document.getElementById(forr);
	forma.chose.value=c;	
    forma.submit(); 
}
function form_submit_video(forr,f1,f2,f3,c) {	

	var forma = document.getElementById(forr);
	forma.chose.value=c;
	forma.ftp1.value=f1;
	forma.ftp2.value=f2;
	forma.ftp3.value=f3;
    forma.submit(); 
}
function dosubmit_contact() {
	var flag;
flag = 0;
if (document.fmail.com.value == "") {
	document.fmail.com.focus();
	document.fmail.com.select();
	flag=1;
	}
if (document.fmail.email.value == "") {
	document.fmail.email.focus();
	document.fmail.email.select();
	flag=1;
	}	
if (document.fmail.org.value == "") {
	document.fmail.org.focus();
	document.fmail.org.select();
	flag=1;
	}		
if (document.fmail.lname.value == "") {
	document.fmail.lname.focus();
	document.fmail.lname.select();
	flag=1;
	}	
if (document.fmail.fname.value == "") {
	document.fmail.fname.focus();
	document.fmail.fname.select();
	flag=1;
	}				
 if (flag == 1) {
	alert("Enter all info");
	return false;
	}
if (flag == 0) {
	//document.fmail.submit();	
	return true;
	}

}

function open_video(id)
{
  var w=390;var h=360;var x=(screen.width/2)-(w/2);var y=(screen.height/2)-(h/2);
  window.open('pop_video.php?filename='+ id, 'top_video', config='left='+x+', top='+y+', height='+h+', width='+w+', scrollbars=no, resizable=yes,location=no').focus();
}