var isedit = false;
		
function unset(){
	isedit = false;	
}

function urllink(indata,target){
	if(isedit == false){
		window.open(indata,target);
	}
}

function edit(indata,file,field,lang,type){
	isedit = true;

	var width = indata.offsetWidth + 50;
	//icms.close();
	icms = window.open("libispy/icmsedit.php?file=" + file + "&field=" + field + "&lang=" + lang + "&width=" + width + "&type=" + type, "myWindow", "status = 1, height = 350, width = " + (width +40) + ", resizable = 0" );
	 
	icms.focus();
	icms.resizeTo(width + 100,450); 
	setTimeout ("unset()", 100 );
}

function editImage(image){
	isedit = true;
	
	window.open("editimage.php?id=" + image.id, "myWindow", "status = 1, height = 400, width = 400, resizable = 0");
	
	setTimeout ("unset()", 100 );
}




