
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function noScShowdiv(divId){
	var arr = document.getElementById(divId)
	if ( arr!= null ) {
		arr.style.display = 'block';
	}
}

function noScClosediv(divId){
	var arr = document.getElementById(divId)
	if ( arr!= null ) {
		arr.style.display = 'none';
	}
}

function showdiv(divId){
	var arr = document.getElementById(divId)
	if ( arr!= null ) {
		arr.style.display = 'block';
		parent.window.scrollTo(0,arr.offsetTop+500) 
	}
}

function closediv(divId){
	var arr = document.getElementById(divId)
	if ( arr!= null ) {
		arr.style.display = 'none';
	}
}


function getCheckedValue(radioObj) {
	if(!radioObj) return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

function numberControl(str) {
    if (!str) return false;
    var Chars = "0123456789";

    for (var i = 0; i < str.length; i++) {
       if (Chars.indexOf(str.charAt(i)) == -1)
          return false;
    }
    return true;
} 

function chickentranslate(strObj){

	var myVal = strObj.value;
	var translatedValue="";
	for(var i=0;i<myVal.length;i++){
		translatedValue += replaceChar(myVal.substring(i,i+1)).toUpperCase();
	}
	strObj.value=translatedValue;
}

function replaceChar(charValue){
	if(charValue.charCodeAt()==214){
		return "O";
	}else if(charValue.charCodeAt()==220){
		return "U";
	}else if(charValue.charCodeAt()==286){
		return "G";
	}else if(charValue.charCodeAt()==304){
		return "I";
	}else if(charValue.charCodeAt()==350){
		return "S";
	}else if(charValue.charCodeAt()==199){
		return "C";
	}else if(charValue.charCodeAt()==252){
		return "u";
	}else if(charValue.charCodeAt()==287){
		return "g";
	}else if(charValue.charCodeAt()==305){
		return "i";
	}else if(charValue.charCodeAt()==351){
		return "s";
	}else if(charValue.charCodeAt()==231){
		return "c";
	}else if(charValue.charCodeAt()==246){
		return "o";
	}else{
		return charValue;
	}
}

var wins = new Array();
function openit(myurl,winname,stuff){
	wins[wins.length] = emus = window.open(myurl,winname,stuff + ',toolbar=no'); 
	//if (window.focus) {emus.focus()}
}	

