<!--//

function PopUpWindow(URL, N, W, H, S) { // V 1.0
try{
	var winleft	=	(screen.width - W) / 2;
	var winup	=	(screen.height - H) / 2;
	winProp		=	'width='+W+',height='+H+',left='+winleft+',top='+winup+',scrollbars='+S+',resizable'
	Win			=	window.open(URL, N, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
	} catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}



//-------------- Admin --------------//
function ContentEdit(URL) {
try{
  PopUpWindow(URL,'p7',875,620,'yes');
 } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}

function ContentApprove(URL) {
  try{
  PopUpWindow(URL,'p7',550,300,'no');
 } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}

function JobAvailableEdit(URL) {
  try{
  PopUpWindow(URL,'p6',875,620,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}

function UserEdit(URL) {
try{
  PopUpWindow(URL,'p5',550,600,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}

function NewsEdit(URL) {
try{
  PopUpWindow(URL,'p5',875,620,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}
//-------------- / Admin --------------//



//-------------- Web --------------//
function AssetView(URL) {
try{
  PopUpWindow(URL,'p3',640,540,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}
function PromotionPopup(URL) {
  try{
  PopUpWindow(URL,'ACLPromotion',550,400,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}
function PromotionPopupBig(URL) {
try{
  PopUpWindow(URL,'ACLPromotion',700,450,'no');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}
function JobUpload(URL) {
  try{
  PopUpWindow(URL,'P7',550,400,'yes');
  } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}
//-------------- / Web --------------//



function ConfirmWindow(URL) {
  try{
  PopUpWindow(URL,'p2',450,300,'no');
 } catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}




function jumpMenu(targ,selObj,restore){ 
	try{
	if (selObj.options[selObj.selectedIndex].value != "") {
	  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  eval("location='"+selObj.options[selObj.selectedIndex].value+"'");
	}
	if (restore) selObj.selectedIndex=0;
	} catch (exception) {    if (exception != null) {        alert('Exception' + exception.description);    }}
}



//-->