<!--

//opens a new popup window containing the page from parameter "url":
var newWin;
function WinOpen(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}
var newWin1;
function WinOpen1(url,title){
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin1=window.open(url,title,"width=568,height=600,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin1.focus();
}
function popMortgageCalculator(){
	var mc = open("calculator_rate.asp","MC", "width=300, height=150, statusbar=no, scrollbars=no, resizable=no")
}
function popTaxCalculator(){
	var mc = open("calculator_taxe.asp","MC", "width=300, height=150, statusbar=no, scrollbars=no, resizable=no")
}
//opens a new popup window containing the image from parameter:
function ImageViewer(picFileName, subDir){
	if (picFileName!=""){
		if (ns)	var viewWin = window.open("","imgWin","statusbar=0,resizable=no");
		else var viewWin = window.open("","imgWin","width=160,height=160,statusbar=no,resizable=no,scrollbars=no,top=50,left=50");
		viewWin.document.open();
		viewWin.document.write("<HTML><HEAD><TITLE>Vizualizare Imagine</TITLE><LINK rel='stylesheet' href='style.css'></HEAD><BODY bgcolor=#ffffff marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onload='self.resizeTo((document.images[\"img1\"].width + 5),(document.images[\"img1\"].height+90))'>");
		viewWin.document.write("<CENTER><IMG name=img1 src='images/" + subDir + "/" + picFileName + "'><BR><BR><A href='javascript:self.close()' class='lnk'><B>Inchide</B></A></CENTER>");
		viewWin.document.write("</BODY></HTML>");
		viewWin.document.close();
		viewWin.focus();
	}
}
//opens a new popup window containing the image from parameter:
function ImageViewer1(picFileName){
	if (picFileName!=""){
		if (ns)	var viewWin = window.open("","imgWin","statusbar=0,resizable=no");
		else var viewWin = window.open("","imgWin","width=160,height=160,statusbar=no,resizable=no,scrollbars=no,top=50,left=50");
		viewWin.document.open();
		viewWin.document.write("<HTML><HEAD><TITLE>Vizualizare Imagine</TITLE><LINK rel='stylesheet' href='style.css'></HEAD><BODY bgcolor=#ffffff marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onload='self.resizeTo((document.images[\"img1\"].width + 5),(document.images[\"img1\"].height+90))'>");
		viewWin.document.write("<CENTER><IMG name=img1 src='" + picFileName + "'><BR><BR><A href='javascript:self.close()' class='lnk'><B>Inchide</B></A></CENTER>");
		viewWin.document.write("</BODY></HTML>");
		viewWin.document.close();
		viewWin.focus();
	}
}
//used for paging:
function GoToPageNo(page){
	document.frmMain.page.value=page;
	document.frmMain.submit();
}

function AddToPortfolio(jobid,vac) {
	self.location.href=site_sslpath+"candidate_addport.asp?jobid="+jobid
}

function ApplyJob(jobid,vac) {
	self.location.href="candidates_apply.asp?jobid="+jobid
	//document.frmApply.submit();
}

function SubmitSearchJobs(){
	document.frmSearch.submit();
}

//-->
