
function MM_findObj(n, d) { //v4.0
	var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function send_vemail(id) {
	var el = MM_findObj("frameHolder");
	el.innerHTML = '<iframe height="1" width="1" longdesc="1" scrolling="yes" name="emflame" frameborder="0" id="emflame" src="/stat/send_email.php?vrid='+id+'&type=vacancy"></iframe>';
}


function send_remail(id) {
	var el = MM_findObj("frameHolder");
	el.innerHTML = '<iframe height="1" width="1" longdesc="1" scrolling="yes" name="emflame" frameborder="0" id="emflame" src="/stat/send_email.php?vrid='+id+'&type=resume"></iframe>';
}

function winopen(url, w, h) {
	var x = (screen.width-w)/2;
	var y = (screen.height-h)/2;
	w = window.open(url,'node_props','resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=yes,width='+w+', height='+h+',scrollbars=yes,fullscreen=no,top='+x+', left='+y);
	w.focus();
}

function winopen_sendbymail(url, w, h) {
	var x = (screen.width-w)/2;
	var y = (screen.height-h)/2;
	w = window.open(url,'node_props','resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width='+w+', height='+h+',scrollbars=yes,fullscreen=no,top='+x+', left='+y);
	w.focus();
}

    function vipopen(url, w, h) {
        w = window.open(url,'node_props','resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,width='+w+', height='+h+',scrollbars=yes,fullscreen=no,top=100, left=100');
		w.focus();
    }

    function helpopen(url, w, h) {
        w = window.open(url,'node_props','resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,width='+w+', height='+h+',scrollbars=yes,fullscreen=no,top=100, left=100');
		w.focus();
    }

function showPopup(url) 
{
    window.open(url, '', 'location=1, status=0, resizable=1, scrollbars=0, menubar=0, toolbar=0, height=740, width=645');
}    
