nav=navigator.appName;
BASE_URL = 'http://www.downloadforge.coml/';

<!-----------------------------------------------------------------------------				
function SetGreenBG(Element) {
	
	document.getElementById(Element).style.backgroundColor='#8ab729';
	//alert(document.getElementById(Element+'Link').style.color);
	
	document.getElementById('Link' + Element).style.color="#ffffff";
}
<!-----------------------------------------------------------------------------				
function SetWhiteBG(Element) {
	
	document.getElementById(Element).style.backgroundColor='#ffffff';
	//alert(document.getElementById(Element+'Link').style.color);
	
	document.getElementById('Link' + Element).style.color="#666666";
}
<!-----------------------------------------------------------------------------				
function VoteNews(URL) {
	
	location.href=URL + "-" + document.Frm1.Vote.value + ".html";
	
}
<!-----------------------------------------------------------------------------				
function VoteProduct(URL) {
	
	location.href=URL + "-" + document.Frm1.Vote.value + ".html";
	
}
<!-----------------------------------------------------------------------------				
function CheckContactFrm() {
	
	if (!CheckIfEmpty('document.Frm1.YourName', 'Please fill in the \'Your name\' field !!!')) {return false;}
	if (!CheckIfEmpty('document.Frm1.YourEmail', 'Please fill in the \'Your email\' field !!!')) {return false;}
	if (!CheckIfEmpty('document.Frm1.Subject', 'Please fill in the \'Subject\' field !!!')) {return false;}
	if (!CheckIfEmpty('document.Frm1.Message', 'Please fill in the \'Message\' field !!!')) {return false;}
	if (!CheckIfEmpty('document.Frm1.security_code', 'Please fill in the \'Validation\' field !!!')) {return false;}
	
	

}
<!-----------------------------------------------------------------------------				
function CheckIfEmpty(Str, Message) {
	
	if (eval(Str + '.value==""')) {
		eval(Str+'.focus()');
		eval(Str+'.select()');
		alert(Message);
		return false;
		exit;
	} else {
		return true;
	}

}	
<!-----------------------------------------------------------------------------				
function customWindow (location, name, width, height, options) {
    var op_str;

    width  =  width  == 0 ? 500 : width  ;
    height =  height == 0 ? 300 : height ;

    op_str = 'width=' + width + ',height=' + height;

    if ( options & 01 ) op_str += ",location=yes"  ;
    if ( options & 02 ) op_str += ",menubar=yes"   ;
    if ( options & 04 ) op_str += ",resizable=yes" ;
    if ( options & 08 ) op_str += ",scrollbars=yes";
    if ( options & 16 ) op_str += ",status=yes"    ;
    if ( options & 32 ) op_str += ",toolbar=yes"   ;

    var aWindow = window.open(location , name, op_str);
}
<!-----------------------------------------------------------------------------				
function OpenPrintPopup(News_BASE, PrintLink) {
	
	customWindow (News_BASE + 'PrintNews/' + PrintLink, '', 700, 500, '08');
	
}
<!-----------------------------------------------------------------------------				
function PrintNewsArticle() {
	document.all.PrintSpace.style.display = "";
	window.print();
	document.all.PrintSpace.style.display = "none";
}