<!--

/***********************************************
* Required field(s) validation v1.10- By NavSurf
* Visit Nav Surf at http://navsurf.com
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function formCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("name", "email" );
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("First Name", "Email");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
// -->







/***********************************************
* Email Validation script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function checkmail(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
alert("Please enter a valid email address.")
e.select()
}
return returnval
}


/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}


















function disableselect(e){
return false
} 
function reEnable(){
return true
} 
document.onselectstart=new Function ("return false") 
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}





IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;
function clickIE(){ return false; }
function clickNS(e) { if (e.which==2 || e.which==3) { return false; } }
if (!IE4plus) {
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE; // For NS 6+
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}





var base = "../images/";



        if (document.images) {            



             img1on = new Image();   img1on.src = base + "top_buttonover-01.gif"; 



            img2on = new Image();   img2on.src = base + "top_buttonover-02.gif";  



            img3on = new Image();   img3on.src = base + "top_buttonover-03.gif";

                        

            img4on = new Image();   img4on.src = base + "top_buttonover-04.gif"; 

 

     	    img5on = new Image();   img5on.src = base + "nav_surover-01.gif"; 



            img6on = new Image();   img6on.src = base + "nav_surover-02.gif";  



            img7on = new Image();   img7on.src = base + "nav_surover-03.gif";

                        

            img8on = new Image();   img8on.src = base + "nav_surover-04.gif"; 

		

	    img9on = new Image();   img9on.src = base + "nav_surover-05.gif"; 	



	    img10on = new Image();   img10on.src = base + "nav_surover-06.gif"; 

            

            img11on = new Image();   img11on.src = base + "top_buttonover-05.gif"; 	



         



           



            img1OFF = new Image();  img1OFF.src = base + "top_button-01.gif"; 



            img2OFF = new Image();  img2OFF.src = base + "top_button-02.gif";



            img3OFF = new Image();  img3OFF.src = base + "top_button-03.gif";

                        

            img4OFF = new Image();  img4OFF.src = base + "top_button-04.gif"; 



	    img5OFF = new Image();  img5OFF.src = base + "nav_sur-01.gif"; 



            img6OFF = new Image();  img6OFF.src = base + "nav_sur-02.gif";



            img7OFF = new Image();  img7OFF.src = base + "nav_sur-03.gif";

                        

            img8OFF = new Image();  img8OFF.src = base + "nav_sur-04.gif"; 



            img9OFF = new Image();  img9OFF.src = base + "nav_sur-05.gif"; 

	    

            img10OFF = new Image();  img10OFF.src = base + "nav_sur-06.gif"; 

	

	    img11OFF = new Image();  img11OFF.src = base + "top_button-05.gif";

	

			 

	

          



            





        }





    function imgOn(imgName) {



            if (document.images) {



                document[imgName].src = eval(imgName + "on.src");       



            }



    }







    function imgOFF(imgName) {



            if (document.images) {



                document[imgName].src = eval(imgName + "OFF.src");        



            }



    }



var a = Math.random() + ""

var rand1 = a.charAt(5)

quotes = new Array

quotes[1] = "1 USD = 46.7385 PHP"

quotes[2] = "1 EUR = 63.7352 PHP"

quotes[3] = "1 USD = 46.7385 PHP"

quotes[4] = "1 EUR = 63.7352 PHP"

quotes[5] = "1 USD = 46.7385 PHP"

quotes[6] = "1 KRW = 0.05121 PHP"

quotes[7] = "1 KRW = 0.05121 PHP"

quotes[8] = "1 AUD = 37.9291 PHP"

quotes[9] = "1 JPY = 0.40954 PHP"

quotes[0] = "1 JPY = 0.40954 PHP"

var quote = quotes[rand1]





 



/*****************************************\

||       Fade Script Version 3.1         ||

||   http://anarchos.xs.mw/fade.phtml    ||

||            (c) July 2001              ||

|| _____________________________________ ||

|| Created by:                           ||

|| Anarchos    > anarchos.xs.mw          ||

|| _____________________________________ ||

|| auto-startColor by Mike West          ||

|| mike@westman.org                      ||

|| _____________________________________ ||

|| uniqueID upgrade by DubMatrix         ||

|| http://www.princefari.com             ||

|| _____________________________________ ||

|| Color conversion from decimal to      ||

|| hex (dehexize function) by:           ||

|| Litejet > litejet@hotmail.com         ||

|| _____________________________________ ||

|| Fade, hex, setColor functions by:     ||

|| Dak Phoenix > phoenix-archetypes.com  ||

|| _____________________________________ ||

|| domouseover/out based on scripts by   ||

|| The Shadow  > www.icon.co.za/~andrewk ||

||                                       ||

\*****************************************/



/*************

**** <config>

**/



fadeColor = "#4482AE";  // color to fade to

//fadeColor = "#0";

stepIn = 17; // delay when fading in

stepOut = 25; // delay when fading out



/* set to true or false; true will

** cause all links to fade automatically

** (you won't need to add class="fade")

***/

autoFade = true;  



/* set to true or false; true will cause all CSS

** classes with "fade" in them to fade onmouseover

***/

sloppyClass = true;



/* set to true or false; true will make the script

** work for Macs (IE 5+), but you will have to give

** a name (name="blah") to each link that you want

** to fade.

***/

macCompat = false;



/** 

**** </config>

**************/



/*************

**** <install>

**



Now, once you have customized your fading colors,

you need to include your customized .js file on

every page that you want to use it in. You can

include javascript files using this syntax (in

the head of a document):



<script src="fade.js" language="Javascript"></script>



Now that you have the file included, you need to

setup your links a small bit.  Each link that you

want to fade needs to use the fade class.



Example:



<a href="blah.html" class="fade">click here</a>



Also, the link must be plain text.  This means

that you can't have <b>'s, <i>'s, <font>'s, etc.

inside of the link.



Example of what not to do:



<a href="blah.html" class="fade"><b>click</b> here</a>



Have fun!

-Anarchos-



** 

**** </install>

**************/



hexa = new makearray(16);

for(var i = 0; i < 10; i++)

    hexa[i] = i;

hexa[10]="a"; hexa[11]="b"; hexa[12]="c";

hexa[13]="d"; hexa[14]="e"; hexa[15]="f";



document.onmouseover = domouseover;

document.onmouseout = domouseout;



fadeColor = dehexize(fadeColor.toLowerCase());



var fadeId = new Array();



function dehexize(Color){

	var colorArr = new makearray(3);

	for (i=1; i<7; i++){

		for (j=0; j<16; j++){

			if (Color.charAt(i) == hexa[j]){

				if (i%2 !=0)

					colorArr[Math.floor((i-1)/2)]=eval(j)*16;

				else

					colorArr[Math.floor((i-1)/2)]+=eval(j);

			}

		}

	}

	return colorArr;

}



function domouseover() {

	if(document.all){

		var srcElement = event.srcElement;

		if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) {

				if (!srcElement.startColor) {

					srcElement.startColor = (srcElement.style.color)? srcElement.style.color: srcElement.currentStyle.color;

					srcElement.startColor = dehexize(srcElement.startColor.toLowerCase());

				}

				var link = (macCompat? srcElement.name: srcElement.uniqueID);

				if (link) fade(srcElement.startColor,fadeColor,link,stepIn);				

				else if (macCompat) alert("Error: Mac Compatility mode enabled, but link has no name.");

		}

	}

}



function domouseout() {

	if (document.all){

		var srcElement = event.srcElement;

		if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) {

			var link = (macCompat? srcElement.name: srcElement.uniqueID);

			if (link) fade(fadeColor,srcElement.startColor,link,stepIn);

		}

	}

}



function makearray(n) {

    this.length = n;

    for(var i = 1; i <= n; i++)

        this[i] = 0;

    return this;

}



function hex(i) {

    if (i < 0)

        return "00";

    else if (i > 255)

        return "ff";

    else

       return "" + hexa[Math.floor(i/16)] + hexa[i%16];

}



function setColor(r, g, b, element) {

      var hr = hex(r); var hg = hex(g); var hb = hex(b);

      element.style.color = "#"+hr+hg+hb;

}



function fade(s,e,element,step) {

	var sr = s[0]; var sg = s[1]; var sb = s[2];

	var er = e[0]; var eg = e[1]; var eb = e[2];

	

	if (fadeId[0] != null && fade[0] != element && eval(fadeId[0])) {

		var orig = eval(fadeId[0]);

		setColor(orig.startColor[0],orig.startColor[1],orig.startColor[2],orig);

		var i = 1;

		while(i < fadeId.length) {

			clearTimeout(fadeId[i]);

			i++;

		}

	}

		

	for(var i = 0; i <= step; i++) {

		fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" +

			step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+

			")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step);

	}

	fadeId[0] = element;

}





 

<!--



//Disable right click script III- By Renigade (renigade@mediaone.net)

//For full source code, visit http://www.dynamicdrive.com



var message="";

///////////////////////////////////

function clickIE() {if (document.all) {(message);return false;}}

function clickNS(e) {if 

(document.layers||(document.getElementById&&!document.all)) {

if (e.which==2||e.which==3) {(message);return false;}}}

if (document.layers) 

{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}

else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}



document.oncontextmenu=new Function("return false")

// --> 

 

<!-- Copyright 2000 - Galichon Enterprises, Inc.  rich@galichon.net  http://www.galichon.net

// Permission granted to SimplytheBest.net to list the script in the DHTML scripts library

// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)

function banner(img_source,url,alt,chance) {

   this.img_source = img_source;

   this.url = url;

   this.alt = alt;

   this.chance = chance;

}

function display() {

   with (this) document.write("<A HREF=" + url + "><IMG SRC='" + img_source + "' BORDER=0 ALT='" + alt + "'></A>");

}

banner.prototype.display = display;

banners = new Array();

banners[0] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        25);

banners[1] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        25);

banners[2] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        25);

banners[3] = new banner("../banner/banner_04.gif",

                        "http://www.alumni.net/cgi-bin/affiliate.pl?email=screwface8%40hotmail.com&p=http%3A%2F%2Fwww.alumni.net%2FAsia%2FPhilippines%2FSurigao_Del_Norte%2FSurigao_City%2FSan_Nicolas_College_%28High_School%29%2F target='_blank'",

                        "Surigao del norte Alumni", 

                        23);

 

banners[4] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                       25);



banners[5] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        24);



banners[6] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        25);

banners[7] = new banner("http://www.awltovhc.com/image-1892303-10402288",

                        "http://www.dpbolvw.net/click-1892303-10402288 target='_blank'",

                        "Use Xoom to Send Money to the Philippines", 

                        25);

 

 									

						

						

sum_of_all_chances = 0;

for (i = 0; i < banners.length; i++) {

   sum_of_all_chances += banners[i].chance;

}

function display_banner() {

   chance_limit = 0;

   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;

   for (i = 0; i < banners.length; i++) {

      chance_limit += banners[i].chance;

      if (randomly_selected_chance <= chance_limit) {

         document.write("<A HREF=" + banners[i].url + "><IMG SRC='" + banners[i].img_source + "' BORDER=0 ALT='" + banners[i].alt + "'></A>");

         return banners[i];

         break;

      }

   }

}

//-->







//Highlight Table Cells Script-- By Dynamic Drive

//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com

//This credit MUST stay intact for use



var ns6=document.getElementById&&!document.all

var ie=document.all



function changeto(e,highlightcolor){

source=ie? event.srcElement : e.target

if (source.tagName=="TR"||source.tagName=="TABLE")

return

while(source.tagName!="TD"&&source.tagName!="HTML")

source=ns6? source.parentNode : source.parentElement

if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")

source.style.backgroundColor=highlightcolor

}



function contains_ns6(master, slave) { //check if slave is contained by master

while (slave.parentNode)

if ((slave = slave.parentNode) == master)

return true;

return false;

}



function changeback(e,originalcolor){

if

(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")

return

else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))

return

if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)

source.style.backgroundColor=originalcolor

}







//dropdown



function dropDownNavigate(ddlist)

{

	var URL = ddlist.options[ddlist.selectedIndex].value;

	document.location.href = URL;

} 



//----







//Hide status bar msg II script- by javascriptkit.com

//Visit JavaScript Kit (http://javascriptkit.com) for script

//Credit must stay intact for use



function hidestatus(){

window.status=''

return true

}



if (document.layers)

document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)



document.onmouseover=hidestatus

document.onmouseout=hidestatus