function quickView() {
	var html = prompt("Podaj nazwę dużego obrazka");
	var h = propt("Podaj wysokość obrazka");
	var w = propt("Podaj szerokość obrazka");
	if (html) {
    // Get the editor instance that we want to interact with.
    var oEditor = FCKeditorAPI.GetInstance('arDesc') ;
    //alert(oEditor);
    // Check the active editing mode.
    if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )	{		// Insert the desired HTML.
      oEditor.InsertHtml(
        "<table align='right'><tr><td>","</td></tr><tr><td><a href='javascript:galeria('"+html+"',0,0, 'AGRO-TRADE')' border='1' alt='Kliknij aby powiększyć'>KLIK</a></td></tr></table>"
      ) ;
    }	else	alert( 'You must be on WYSIWYG mode!' ) ;

		fcktext.surroundHTML(
		);
	}
}

function quickView2(name, width, height, where, dir) {
	var image = prompt("Podaj nazwę dla małego obrazka");
	if (!image) {
		image = name;
	}
	if (image.substr(0,1) == "/") {
		image = image.substr(1,image.length-1);
	}
  if (dir.substr(0,1) != "/") {
		dir = "/"+dir;
	}
  image = dir+"/"+image;

	// Get the editor instance that we want to interact with.
	var oEditor = FCKeditorAPI.GetInstance('arDesc') ;
  //alert(oEditor);
	// Check the active editing mode.
	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )	{		// Insert the desired HTML.
		oEditor.InsertHtml(
      "<table align='"
      +where
      +"'><tr><td align=\"center\"><img border=\"0\" src=\""
      +image
      +"\" />",
      "</td ></tr><tr><td align=\"center\" ><a href=\"javascript:galeria('"
      +name
      +"',"
      +width
      +","
      +height
      +",'AGRO-TRADE')\" alt='Kliknij aby powiększyć'>"
      +"<img src=\"photo_product/zoom.gif\" width=\"150\" height=\"20\" border=\"0\">"
      +"</a></td></tr></table>"
    ) ;
	}	else	alert( 'You must be on WYSIWYG mode!' ) ;

}


function quickView3(name, width, height, where, dir) {
	//var image = prompt("Podaj nazwę dla małego obrazka");
	/*if (!image) {
		image = name;
	}
	if (image.substr(0,1) == "/") {
		image = image.substr(1,image.length-1);
	}*/
  if (dir.substr(0,1) != "/") {
		dir = "/"+dir;
	}

  image_thumb = dir + "/thumb/" + name;
  image_big =  dir + "/" + name;

	// Get the editor instance that we want to interact with.
	var oEditor = FCKeditorAPI.GetInstance('arDesc') ;
  //alert(oEditor);
	// Check the active editing mode.
	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )	{		// Insert the desired HTML.
		oEditor.InsertHtml(
      "<table align='"+where+"'><tr><td align=\"center\"><img border=\"0\" src=\""+image_thumb+"\" />"+
      "</td></tr><tr><td align=\"center\" ><a href=\"javascript:popImage('"+image_big+"',"
      +width+","+height+",'AGRO-TRADE')\" alt='Kliknij aby powiększyć'>"
      +"<img src=\"/photo_product/zoom.gif\" width=\"150\" height=\"20\" border=\"0\"></a></td></tr></table>"
    ) ;
	}	else	alert( 'You must be on WYSIWYG mode!' ) ;

}
