// JavaScript Document
// Example:
 var b = new BrowserInfo();
 //alert(b.version); 
// alert(b.name); 
 
function BrowserInfo()
{
  this.name = navigator.appName;
  this.codename = navigator.appCodeName;
  this.version = navigator.appVersion.substring(0,4);
  this.platform = navigator.platform;
  this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}
bs = b.name == "Netscape" ? "" : "IE" ;
 // if(bs == "IE" ){document.write(unescape(tariq_bdjobs));dF(tariq_bdjobs2);}//if(bs == "IE" )
// else {document.write(unescape(tariq_bdjobs3));dF(tariq_bdjobs4);}//else of (bs == "IE" )


functionNm = bs == "IE" ? " onFocus='getIDLAST(this.id)'  onKeyPress='gdgg(window.event.keyCode)' " : " onFocus='getIDLAST(this.id)'  onKeyUp='getCode(this.id);' ";
g_no = 0 ;  if(bs == "IE" ) {g_no = bcb[103] ; }else{ g_no = bcbMoz[103] ;}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 // alert(g_no) ; 
lastTextField = "itemTitle" ;
function viewKeyHelp()
{
E_or_B == 'B' ? document.getElementById('panel').style.visibility = 'visible' : document.getElementById('panel').style.visibility = 'hidden' ; 
}//viewKeyMap()
function webpreview()
{
document.getElementById("hidPreview").value  = document.getElementById(lastTextField).value ;
document.getElementById("hidPreview").style.visibility='visible';
 get_charCodeAt('' , 'hidPreview');
ncd = document.getElementById("hidPreview").value 
document.getElementById("hidPreview").style.visibility='hidden';

//ncd = document.getElementById(lastTextField).value ;
//y1 = "\n" ;var regY = new RegExp("", "g");regY.compile( y1 , "g");ncd = ncd.replace( regY ,"<br>")
//y2 = String.fromCharCode(32) ;var regY2 = new RegExp("", "g");regY2.compile( y2 , "g");ncd = ncd.replace( regY2 ,"&nbsp;");

document.getElementById("webpreview").innerHTML = ncd ;
	if(document.getElementById("chkNewPg").checked)
	{
	   newW = window.open("","a","");
	   firstPhase = "<html><head><title>Bdjobs.com :: Bangla with Unicode Support</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><meta NAME='Author' content='Mir Tariqul Alam, Bdjobs.com Team , Bdjobs.com'><meta NAME='keywords' content='Bdjobs.com,Bangla,bengoli,bengali,Unicode bangla, Unicode , unicode bangla typing, unicode bangla writing, unicode bengoly typing,'><STYLE TYPE='text/css'> <!-- /* $WEFT -- Created by: tariq (tariq@bdjobs.com)  on 1/1/2006 -- */  @font-face {    font-family: Likhan;    font-style:  normal;    font-weight: 700;    src: url(LIKHAN2.eot);  }  @font-face {    font-family: Likhan;    font-style:  normal;    font-weight: normal;    src: url(LIKHAN1.eot);  } --></STYLE>" ; 
		lastPhase = "</body></html>" ;
		theDoc = firstPhase + ncd + lastPhase ; 
		newW.document.write(theDoc) ;
		
	//	if(document.getElementById("chkPrint").checked)	{alert(1);	 newW.print() ;	}
	}
document.getElementById("chkPrint") ? (document.getElementById("chkPrint").checked ?  print() : "" ) : ""	 ;
	
}//fnc webpreview
function writeTextArea(spnName,taName)
{
functionNm = spnName == "webCode" ? "" : functionNm ; 
//fontNm = spnName == "webCode" ? "Tahoma" : "Likhan" ; 
fontNm = spnName == "webCode" ? "Likhan" : "Likhan" ; 

abv = "<textarea name='"+taName+"'   id='"+taName+"'     style='font-family:"+fontNm+";font-size:10pt;border-width:1px;'  " +  functionNm + " cols='60' rows='4'></textarea><br>";
abv2 = "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" onClick=\"document.getElementById('"+spnName+"').innerHTML=''; \">Close</a><br><br>" ;
document.getElementById(spnName).innerHTML = abv2+abv ;

}//writeTextArea()