var t;
var layer={
	returnId : function(id) {
		return parent.document.getElementById(id);
	},
	
	show : function(a, id, h, w) {
		id=layer.returnId(id);
		if(a) {
			_x=layer.getPos(a, 'left'); id.style.left=_x-350+'px';
			_y=layer.getPos(a, 'top'); id.style.top=_y+10+'px';
		}
		id.style.display='block';
		id.style.height=h;
		id.style.width=w;
	},
	
	hide : function(a, formName) {
		a=layer.returnId(a);
		a.style.display='none';		
		if(formName) {
			layer.resetForm(formName);
		}
	},
	
	getPos : function(what, offsettype){
		var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
		var parentEl=what.offsetParent;
		while (parentEl!=null){
			totaloffset=(offsettype=="left")? totaloffset+(parentEl.offsetLeft) : totaloffset+parentEl.offsetTop;
			parentEl=parentEl.offsetParent;
		}
		return totaloffset;
	},
	resetForm : function(formName) {
		document.forms[formName].reset();
	}
	
}

function enqpath(prop_id, mem_id) {
	
	iframe=parent.document.getElementById('iFrame'); 
	iframe.src='/inquiry-popup.htm?prop_id='+prop_id+'&mem_id='+mem_id; 
	return false;
	
}

function contdtlparh(viewerid, memberid, propertyid, pstatus) {
	
	iframe=parent.document.getElementById('iFrame'); 
	iframe.src='/contdtl-popup.htm?viewerid='+viewerid+'&mem_id='+memberid+'&propertyid='+propertyid+'&pstatus='+pstatus; 
	return false;
	
}
function contdtlparh1(viewerid, memberid, propertyid, pstatus) {
	
	iframe=parent.document.getElementById('iFrame'); 
	iframe.src='/contdtl-class-popup.htm?viewerid='+viewerid+'&mem_id='+memberid+'&pstatus='+pstatus; 
	return false;
	
}
