function popupWindow(str_url, str_target, str_width, str_height, str_scrolling) {
	str_left = (screen.availwidth - str_width) / 2;
	str_top = (screen.availheight - str_height) / 2;
	if(!str_scrolling) {
		str_scrolling="no";
	}
	obj_window = window.open(str_url , str_target, "width=" + str_width + ",height=" + str_height +",left=" + str_left + ",top=" + str_top + ",toolbar=no,resizeable=no,location=no,status=no,menubar=no,scrollbars=" + str_scrolling);
	obj_window.focus();
}

function popupWindow100(str_url, str_target, str_scrolling) {
	str_left = 0;
	str_top = 0;
	if(!str_scrolling) {
		str_scrolling="no";
	}
	obj_window = window.open(str_url , str_target, "width=" + (screen.availwidth-10) + ",height=" + screen.availheight +",left=" + str_left + ",top=" + str_top + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=" + str_scrolling);
	obj_window.focus();
}

function popupWindowUlya(str_url, str_target, str_scrolling) {
	str_left = 0;
	str_top = 0;
	if(!str_scrolling) {
		str_scrolling="no";
	}
	obj_window = window.open(str_url , str_target, "width=" + (screen.availwidth-10) + ",height=" + screen.availheight +",left=" + str_left + ",top=" + str_top + ",toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=" + str_scrolling);
	obj_window.focus();
}

playing=1;
function rmPlayPause() {
	if(playing) {
		document.MediaPlayer.DoPause();
		playing=0;
	} else {
		document.MediaPlayer.DoPlay();
		playing=1;
	}
}


playing=1;
function wmPlayPause() {
	if(playing) {
		document.MediaPlayer.Pause();
		playing=0;
	} else {
		document.MediaPlayer.Play();
		playing=1;
	}
}


function getRadioButtonValue(radio) {
	if(!radio.length) {
		if(radio.checked) {
			return radio.value;
		}
	} else {
		for(i=0; i<radio.length; i++) {
			if(radio[i].checked) {
				return radio[i].value;
			}
		}
	}
	return '';
}
