function WhichClicked(ww) {
	window.document.postmodify.waction.value = ww;
}

move=""
ver=""
folder=""
var ypos=0;
var xpos=0;
res();
// ------------------------------------------------------------------------------------------------
function res(){
	if (self.screen) {     // for NN4 and IE4
		xpos = screen.width
		ypos = screen.height
	}
	else if (self.java) {   // for NN3 with enabled Java
		var jkit = java.awt.Toolkit.getDefaultToolkit();
		var scrsize = jkit.getScreenSize();
		xpos = scrsize.width;
		ypos = scrsize.height;
	}
}
// ------------------------------------------------------------------------------------------------
function openSwf( names, id, w, h, ver, folder ){
	player=new FlashInfo();
	if(parseInt(player.version)<ver) {
		if(confirm("У Вас установлена версия плагина ниже требуемой, \n установить новую версию Flash-плагина?")) {
			window.open("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash");
			return;
		}
	}
	
	wi=window.open("../m_top/show.php?swf="+names+"&cart="+id+"\&w="+w+"\&h="+h+"\&folder="+folder, "cartoon", "height="+h+",width="+w+",top="+(ypos/2-h/2)+",left="+(xpos/2-w/2)+",screenX="+(xpos/2-w/2)+";screenY="+(ypos/2-h/2)+"");
	move="cartoon"
}
// ------------------------------------------------------------------------------------------------
function openWin(names,w,h){
	wi=window.open(""+names, "", "height="+h+",width="+w+",top="+(ypos/2-h/2)+",left="+(xpos/2-w/2)+",screenX="+(xpos/2-w/2)+";screenY="+(ypos/2-h/2)+", toolbar=no, location=no, status=no, menubar=no" );
	move="mov";
}
// ------------------------------------------------------------------------------------------------
function openEdit(names){
	w=495;
	h=400;
	wi=window.open(""+names, "", "height="+h+",width="+w+",top="+(ypos/2-h/2)+",left="+(xpos/2-w/2)+",screenX="+(xpos/2-w/2)+",screenY="+(ypos/2-h/2)+",scrollbars=yes");
}
// ------------------------------------------------------------------------------------------------
function doAction( form_name ) {
	if (navigator.appName.indexOf ("Microsoft") !=-1){
		vote = eval( 'document.forms.' + form_name + '.v_vote.value;' );
	}
	else {
		vote = 10;
	}

	if ( vote>0 && vote<11) {
		pvdWin= open("", "pvdwin", "width=400,height=250,top="+(ypos/2-400/2)+",left="+(xpos/2-522/2)+",screenX="+(xpos/2-522/2)+";screenY="+(ypos/2-400/2)+"");
		pvdWin.focus(); 
		pvdWin.document.open();
		pvdWin.document.write("<html><head><title>video.vnu ");
		pvdWin.document.write("</title></head>");
		pvdWin.document.write("<body topmargin=0 bgcolor=#ffffff leftmargin=0 marginwidth=0 marginheight=0>");
		pvdWin.document.write("<table width=100% height=100% align=center><tr><td align=center><font color=black size=1 face=\"Verdana\"><b>Подождите немного...</td></tr></table>");
		pvdWin.document.write("</body></html>");
		pvdWin.document.close();
		eval("document."+form_name+".submit();");
//		eval("document."+form_name+".but_close.disabled = true;");
	}
	else {
		alert('Вы поставили слишком мало баллов, \n разве '+vote+' - это оценка?');
	}
}