<!--
function pOpenPhoto(url,w,h,sb){
  	var x=(screen.width-w)/2;
  	var y=(screen.height-h)/2;
	features="scrollbars="+sb+",width="+w+",height="+h+",left="+x+",top="+y;
  	win=window.open('popenphoto.php?file='+url,'pOpenPhoto',features);
  	win.window.focus();
}

function pOpenGallery(p,id){
  	var w=920;
	var h=700;
	var x=(screen.width-w)/2;
  	var y=(screen.height-h)/2;
	features="scrollbars=1,width="+w+",height="+h+",left="+x+",top="+y;
  	win=window.open('popengallery.php?parent='+p+"&id="+id,'pOpenGallery',features);
  	win.window.focus();
}

function pOpenGalleryKind(p,id){
  	var w=920;
	var h=700;
	var x=(screen.width-w)/2;
  	var y=(screen.height-h)/2;
	features="scrollbars=1,width="+w+",height="+h+",left="+x+",top="+y;
  	win=window.open('popengallery.php?kind=1&parent='+p+"&id="+id,'pOpenGalleryKind',features);
  	win.window.focus();
}

function pOpenAlert(w,h,sb){
  	var x=(screen.width-w)/2;
  	var y=(screen.height-h)/2;
	features="scrollbars="+sb+",width="+w+",height="+h+",left="+x+",top="+y;
  	win=window.open('popenalert.php','pOpenAlert',features);
  	win.window.focus();
}

function addModels(value,field,action){
	var thisValue = document.models["model_"+field].value;
	if(action == "plus")thisValue++;
	if(action == "minus")thisValue--;
	if(thisValue < 0)thisValue = 0;
	document.models["model_"+field].value = thisValue;
}
//-->
