
<!--

function isUndefined(v) {
    var undef;
    return v===undef;
}
var _POPUP_FEATURES = 'width=500,height=600,left=2,top=2,location=0, statusbar=0, menubar=0, scrollbars';
var _POPUP_FEATURES2 = 'width=500,height=235,left=2,top=2,location=0, statusbar=0, menubar=0, scrollbars';
var _POPUP_BIGWIN = 'width=650,height=650,left=2,top=2,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 link_popup2(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_popup2(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

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.rmaf.org.ph/";
}

function raw_popupbig(url, target, features) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features)) features = _POPUP_BIGWIN;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popupbig(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_popupbig(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}
//-->
