var ns6=document.getElementById&&!document.all?1:0

var head="display:''"
var folder=''

function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}

function displaydate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Ch&#7911; nh&#7853;t","Th&#7913 hai","Th&#7913 ba","Th&#7913 t&#432;","Th&#7913 n&#259;m","Th&#7913 s&#225;u","Th&#7913 b&#7843;y")
var montharray=new Array("01","02","03","04","05","06","07","08","09","10","11","12")
document.write(dayarray[day]+" "+daym+"-"+montharray[month]+"-"+year)
}

function ykbd(id_cate, id_item) {
window.open("/pls/bld/ykbandoc_pkg.create_ykbd(" + id_cate + "," + id_item + ")","ykbd","width=350,height=320,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes");
}

function sendfriends(theitem_id) {
window.open("/pls/bld/mail$.send_item(" + theitem_id + ")","sendfriends","width=450,height=200,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes");
}

function thongbao() { 
//	window.open('http://www.laodong.com.vn/bld/thongbao/thongbao1.htm','dkbt','width=300,height=150,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no');
}

function popupmail() {
window.open('http://www.laodong.com.vn/pls/bld/mailinglist_pkg.create_mail','dkbt','width=510,height=350,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no');
}

function vote() {
window.open("","vote","width=500,height=380,scrollbars=yes");
}

function chuyende() {
window.open('http://www.laodong.com.vn/pls/bld/cate$.homepage(43)','Cd','width=380,height=450,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no');
}

function popwin(x, y)  {
                window.open(x, y,'menubar=yes, status=no,scrollbars=yes,resizable=yes,width=400,height=440');
        }
function popwinFoodQuiz(x, y) {
	window.open(x,  y,'status=no,scrollbars=yes,resizable=yes,width=316,height=400');
}

function trangnhat(x, y) {
window.open('http://www.laodong.com.vn/baogiay/trangnhat.jpg','trangnhat','status=no,scrollbars=no,resizable=no,width=320,height=450');
}
function pop_thethao(url) {
window.open(url,"thethao","width=340,height=515,scrollbars=yes");
}

// Set the horizontal and vertical position for the popup

PositionX = 200;
PositionY = 150;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="cursor:hand" onclick="window.close();" alt="Close"></body></html>');
close();		
}}

