//------------------------------------------------------------------------------------------------------------------------
  function ShowPictureLoader(IMGID,ImageNr) {
  	var newurl;
  	newurl="PictureLoader.php?IMGID=" + IMGID + "&ImageNr=" + ImageNr
  	newwin=window.open(newurl,"PictureLoaderWindow","toolbar=yes,status=yes,resizable=yes,address=yes, width=500,height=450,scrollbars=yes")
  	newwin.focus();
  }

//------------------------------------------------------------------------------------------------------------------------
  function CustomizeHTMLEditorSettings(ControlId) 
  {
    var mysettings = new WYSIWYG.Settings(); 
    
    mysettings.ImagesDir = "../htmledit/images/"; 
    mysettings.PopupsDir = "../htmledit/popups/";  
    mysettings.CSSFile = "../htmledit/styles/wysiwyg.css";   
    mysettings.removeToolbarElement("insertimage");
    mysettings.removeToolbarElement("print");
    mysettings.removeToolbarElement("save");
     // attach the editor to the textarea with the identifier 'textarea1'.
    WYSIWYG.attach(ControlId, mysettings);  
  }     

//------------------------------------------------------------------------------------------------------------------------
function isempty(varstr) {
	if (varstr == null || varstr == "" || varstr == " " || varstr == "  " || varstr == "   ") 
	{ 
	return true
	}
	return false
}

//------------------------------------------------------------------------------------------------------------------------
	function changecolor(change, textId, imgId){
	if (change=="over")
  { 
		document.getElementById(textId).style.color= '#cc0000'; 
		document.getElementById(imgId).src="images/top_menu_arrow_selected.jpg";
	} 
  else 
  {
		document.getElementById(textId).style.color= '#000000';
		document.getElementById(imgId).src="images/top_menu_arrow.jpg";
	}
}
	
//------------------------------------------------------------------------------------------------------------------------
	function chColorAndImage(change, textId, imgId, outColor, overColor, outImg, overImg ){
	if (change=="over")
  {
		document.getElementById(textId).style.color= overColor; 
		document.getElementById(imgId).src=overImg;
	} 
  else 
  {
		document.getElementById(textId).style.color= outColor;
		document.getElementById(imgId).src= outImg;
	}
}
	
//------------------------------------------------------------------------------------------------------------------------
	function chColorAndImageOver(textId, imgId, overColor, overImg ){
		document.getElementById(textId).style.color= overColor; 
		document.getElementById(imgId).src=overImg;
}

//------------------------------------------------------------------------------------------------------------------------
	function chColorAndImageOut(textId, imgId, outColor, outImg ){
		document.getElementById(textId).style.color= outColor;
		document.getElementById(imgId).src= outImg;
}
	

