
<!--

function isUndefined(v) {
    var undef;
    return v===undef;
}
var _POPUP_FEATURES = 'width=1200,height=760,left=2,top=2,location=0, statusbar=0, menubar=0, scrollbars=1';
var _POPUP_FEATURES2 = 'width=800,height=600,left=2,top=2,location=0, statusbar=0, menubar=0, scrollbars';
var _POPUP_FEATURES3 = 'width=500,height=400,left=200,top=120,location=0, statusbar=0, menubar=0, scrollbars';
var _POPUP_FEATURES4 = 'width=600,height=500,left=200,top=80,location=0, statusbar=0, menubar=0, scrollbars';


function raw_popup(url, target, features) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features)) features = _POPUP_FEATURES;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popup(src, features) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

function raw_popup2(url, target, features) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features)) features = _POPUP_FEATURES2;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function raw_popup3(url, target, features3) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features3)) features3 = _POPUP_FEATURES3;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features3);
    theWindow.focus();
    return theWindow;
}

function raw_popup4(url, target, features4) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features4)) features4 = _POPUP_FEATURES4;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features4);
    theWindow.focus();
    return theWindow;
}

function link_popup2(src, features2) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    return raw_popup2(src.getAttribute('href'), src.getAttribute('target') || '_blank', features2);
}

function link_popup3(src, features3) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    return raw_popup3(src.getAttribute('href'), src.getAttribute('target') || '_blank', features3);
}


function link_popup4(src, features4) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    return raw_popup4(src.getAttribute('href'), src.getAttribute('target') || '_blank', features4);
}

function PopupClose(){
	 //change the url later
//   var popurl="http://www.rmaf.org.ph/";
//	 winpops=window.open(popurl);
//	 window.close();
	if (window.opener != null) window.opener.focus();
	if (window.opener != null) window.close();
	if (window.opener == null) window.location.href="http://www.ompassessor.com.ph/";
}

//-->
