function popUp(pPage) {
		windowPopUp = window.open(pPage,'popWinClassic','resizable=yes,scrollbars=yes,width=520,height=425,toolbar=no');
		windowPopUp.focus();
}

function popUpXY(pPage,width,height) {
	var mtoX, mtoY;
	if (screen){
		mtoX = (screen.width < width) ? 10 : (screen.width-width)/2;
		mtoY = (screen.height < height) ? 10 : (screen.height-height)/2;
		windowPopUp = window.open(pPage,"popWinClassic",'resizable=yes,scrollbars=yes,top=' + mtoY + ',left=' + mtoX + ',width=' + width + ',height=' + height + ',toolbar=no');
	}else{
		windowPopUp = window.open(pPage,"popWinClassic",'resizable=yes,scrollbars=yes,width=' + width + ',height=' + height + ',toolbar=no');
	}
	windowPopUp.focus();
}


function popUpMapa(pPage) {
		windowPopUp = window.open(pPage,'popWinClassic','resizable=no,scrollbars=no,width=520,height=500,toolbar=no');
		windowPopUp.focus();
}

function OpenPopUp(page) {
	windowPopUp = window.open(page,'popWinViews','resizable=yes,scrollbars=yes,width=520,height=425,toolbar=no');
	windowPopUp.focus();
}

function popUpUser(pPage) {
		windowPopUp = window.open(pPage,'popWinUser','resizable=no,scrollbars=no,width=560,height=450,toolbar=no');
		windowPopUp.focus();
}

function popUpCategory(pPage) {
		windowPopUp = window.open(pPage,'popWinCategory','resizable=no,scrollbars=no,width=520,height=450,toolbar=no');
		windowPopUp.focus();
}

function popUpBigDoc(pPage) {
        nameOfpopUp = new Date();
		windowPopUp = window.open(pPage,"win"+nameOfpopUp.getTime(),'resizable=no,scrollbars=no,width=520,height=500,toolbar=no');
		windowPopUp.focus();
}

function popUpBig(pPage) {
		windowPopUp = window.open(pPage,'popWinBig','resizable=yes,scrollbars=yes,width=600,height=580,toolbar=no');
		windowPopUp.focus();
}

function popUpEditable(pPage, width, height) {
		windowPopUp = window.open(pPage,'popWinEditable','resizable=yes,scrollbars=yes,width='+width+',height='+height+',toolbar=no');
		windowPopUp.focus();
}

function popUpLogin(pPage) {
		windowPopUp = window.open(pPage,'popWinLogin','resizable=yes,scrollbars=yes,width=520,height=480,toolbar=no');
		windowPopUp.focus();
}

function popUpForum(pPage) {
		windowPopUp = window.open(pPage,'popWinForum','resizable=no,scrollbars=yes,width=600,height=580,toolbar=no');
		windowPopUp.focus();
}

function popUpForumNewMsg(pPage) {
		windowPopUp = window.open(pPage,'popWinForumNewMsg','resizable=yes,scrollbars=no,width=520,height=400,toolbar=no');
		windowPopUp.focus();
}
function popUpCompany(pPage) {
		windowPopUp = window.open(pPage,'popWinMyProfile','resizable=no,scrollbars=yes,width=520,height=500,toolbar=no');
		windowPopUp.focus();
}
function popUpCompanyView(pPage) {
		nameOfpopUp = new Date();
		windowPopUp = window.open(pPage,'popWinCompanyView'+nameOfpopUp.getTime(),'resizable=yes,scrollbars=yes,width=520,height=420,toolbar=no');
		windowPopUp.focus();
}
function popUpFullScreen(pPage) {
		windowPopUp = window.open(pPage,'popFullScreen','resizable=no,scrollbars=no,toolbar=no,fullscreen=yes');
		windowPopUp.focus();
}
function popUpMarket(pPage) {
		windowPopUp = window.open(pPage,'popWinMyProfile','resizable=no,scrollbars=yes,width=540,height=500,toolbar=no');
		windowPopUp.focus();
}
