function copy_clip(s)
{
	if( window.clipboardData && clipboardData.setData )
	{
		clipboardData.setData("Text", s);
	}
	else
	{
		
        var clipboard = getService( "@mozilla.org/widget/clipboardhelper;1",
                                         Components.interfaces.nsIClipboardHelper );
        clipboard.copyString(s);
    
		alert(s);   
	}
	
}
var popup_name;
function pop(src, wwid, wheigh,wname) 
{
	if(!wname) wname="Wandeo";
  	var winl = (screen.width-wwid)/2;
  	var wint = (screen.height-wheigh)/2;
  	var option = "toolbar=no,scrollbars=no,location=no,directories=no,menubar=no,resizable=no,status=no,modal=yes,dependable=yes,width="+wwid+",height="+wheigh+",top="+wint+",left="+winl;
  	if (popup_name) popup_name.close();
  	popup_name = window.open(src, wname,option); 
return false;
}

function starover(istar)
{
	for (i=0;i<istar;i++)
	{
	document.getElementsByName('star').item(i).src="/images/star_full.gif";
	}
	for (i=istar;i<5;i++)
	{
	document.getElementsByName('star').item(i).src="/images/star_empty.gif";
	}
}
function settext(layerName,txt)
{  
	var stars;
	//Netscape 4
	if(document.layers){
    stars = document.layers(layerName) ;
        }
	//IE6
        if(document.all){
       stars = document.all(layerName) ;
        }
	//Netscape 6
        if(!document.all && document.getElementById){
    stars = document.getElementById(layerName) ;
        }       
        stars.innerHTML = txt;    
}