// JavaScript Document
//Script code and original idea by Ventsislav Alexandriyski - www.nezavisim.com. All rights reserved.
//Copying any part or content of this inline comments idea, script or website content without written
//autor agreement is strictly prohibited!
//If you like it you can buy full inline comments idea includin implementation code(js+php) for 25 euro 
//Contact me at:v_automation@mail.bg or machinecopy@gmail.com
function zemiobj(ime){
if (document.getElementById){
return document.getElementById(ime);
}else if (document.all){
return document.all[ime];
}else if (document.layers){
return document.layers[ime];
} 
}
function VAshowcomments(id){
	var cfid="commentsfield"+id;
	var tag1=zemiobj(cfid);
	if(tag1==null){
		tag1=document.createElement("iframe");
//		tag1.setAttribute("id","commentsfield");
		tag1.id=cfid;
		tag1.setAttribute('name', cfid);
//		tag1.name="commentsfield";
		tag1.setAttribute("src","sendcomment.php?id="+id);
		tag1.width="650";
		tag1.height="570";
		tag1.style.display= "none";
		tag1.className="vbox";
		//tag1.style.visibility = "visible";
		zemiobj("commentbox"+id).appendChild(tag1);
	}
	var clabt='';
	if(tag1.style.display == "none"){
		tag1.style.display= "inline";
		clabt='Hide Comments';
	}else{
		tag1.style.display= "none";
		clabt='Comments';
	}
	var clab=zemiobj("lcomments"+id);
	if(clab!=null){
		clab.innerHTML=clabt;	
	}
}