
function showBackWindow(text,color)
{

	if(top.m_backWindow && !top.m_backWindow.closed) {
		if(browser.ie ) {
			top.m_backWindow.form.text.value = text;
			return;
		}
		else {
			top.m_backWindow.close();
		}	
	}

	var href = "back.asp?text="+text+"&sh="+color;
	var features;        
        var h_ = 230;
	if(browser.ie && !browser.opera) {	 
           if(browser.ie6SP2) h_ = 235;
		var args = { text: text, opener: window };
		features = "dialogWidth:474px; dialogHeight:" + h_ + "px;scroll:no;help:no;status:no;";
		try {
		  top.m_backWindow = window.showModelessDialog (href, args, features);

		  }
          
	  catch (err){	      
	    if(browser.ie6SP2){
	      alert(TEXT_MSG_POPUP_BACKWIN);
	      backwinPoupupOff = true;
		  }
		}
	}	
	else {

	  	features = "width=468,height=210,toolbar=no,status=no,menubar=no,directories=no,resizable=no,modal=no";
//                features = "dialogWidth:470px; toolbar:0; dialogHeight:215px; status:0; resizable=0;";
	        top.m_backWindow = null;
	  	top.m_backWindow = window.open(href, "Back", features);
//		  top.m_backWindow = window.showModalDialog (href, args, features);


	}
}



function AFS_Builder(url,status){
var dirs = parent.frames['topfr'].document.trans.directions.options[parent.frames['topfr'].document.trans.directions.selectedIndex].value.split("/");
if(dirs[0] != "en"){
 var frame = document.getElementById('AFS-ban');
 if(frame)	frame.parentNode.removeChild(frame);
 return false;
}
var text = parent.frames['topfr'].document.getElementById('source').value;

  var frame = document.getElementById('AFS-ban');
  if(frame || status != 0)	frame.parentNode.removeChild(frame);
    var die = document.createElement("iframe");

    if(getCookie("t600-text")!=null)text = getCookie("t600-text");

    die.src = url+"?text=" + text;
    die.name = "AFS-ban";
    die.id="AFS-ban";
    die.width="598px";
    die.height="62px";
    die.scrolling="no";
    die.frameBorder="0";
    document.getElementById('AFS_container').appendChild(die);
}
