
/***********************************************
* Overlapping Content link- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+"px"
subobj.style.top=getposOffset(curobj, "top")+"px"
var leftdiv = getposOffset(curobj, "left");
var topdiv = getposOffset(curobj, "top");

subobj.style.left=eval(leftdiv+"-"+30)+"px";
subobj.style.top=eval(topdiv+"+"+50)+"px";

subobj.style.display="block";
window.scroll(0,topdiv);
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none";
}



/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function openwin(cid)
{
var url='contorizare.aspx?cid='+cid;
window.open(url, 'contor', 'scrollbars=no, location=no, status=no, toolbar=no, menubar=no, left=5000, top=5000, width=1, height=1');
parent.window.focus();
}


