	function openImageWin(image,image_width,image_height) {
		myImageWin= window.open("", "displayWindow","width="+image_width+",height="+image_height+",status=no,toolbar=no,menubar=no");
		myImageWin.document.open();
		myImageWin.document.write("<title>"+image+"</title><body text=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><img src='"+image+"' border=0></body>");
		myImageWin.document.close();
	}


	function getRadioGroupValue(el_name) {
		var radioGroupObj=document.getElementsByName(el_name);
	  for (var i=0; i < radioGroupObj.length; i++) if (radioGroupObj[i].checked) return radioGroupObj[i].value;
	  return null;
	}


	function VisOrHide(el_name) {
		var obj=document.getElementById(el_name);
		obj.style.display=obj.style.display=='block'?'none':'block';
		return false;
	}


	function noindex_link(ancor,href) {document.writeln('<span class="noindex_link" onClick="window.open(\''+href+'\',\'\',\'\');">'+ancor+'</span>');}


	function explode(delimiter,string) {
		var emptyArray={0:''};

		if (
			arguments.length!=2
			|| typeof arguments[0]=='undefined'
			|| typeof arguments[1]=='undefined'
		) {return null;}

		if (
			delimiter===''
			|| delimiter===false
			|| delimiter===null
		) {return false;}

		if (
			typeof delimiter=='function'
			|| typeof delimiter=='object'
			|| typeof string=='function'
			|| typeof string=='object'
		) {return emptyArray;}

		if (delimiter===true) {delimiter='1';}

		return string.toString().split(delimiter.toString());
	}


	function write_reating(reating,be_vote) {
		var str='';
		var color='';

		var star0='/design/images/star0.gif';
		var star1='/design/images/star1.gif';
		var star2='/design/images/star2.gif';

		var href=window.location.href;
		if (href.indexOf('#')!=-1) href=href.substring(0,href.indexOf('#'));
		if (href.indexOf('?')!=-1) href=href.substring(0,href.indexOf('?'));

		for (var i=1; i<=5; i++) {
			var star=(reating>=i)?star1:star0;
			str+=(be_vote)?'<span class="noindex_link" onClick="window.location.href=\''+href+'?vote='+i+'\';"><img id="'+reating+'_'+i+'" onMouseOver="document.getElementById(\''+reating+'_'+i+'\').src=\''+star2+'\';" onMouseOut="document.getElementById(\''+reating+'_'+i+'\').src=\''+star+'\';" width="12" height="12" border="0" src="'+star+'"></span>':'<img width="12" height="12" border="0" src="'+star+'">';
		}
		document.write(str);
	}