﻿
<!-- 
function imageOn(imageName) 
{
currentImage = document.images[imageName];
currentImage.src = "../images/leftnav_buttons/" + imageName + '_on.gif';
}
function imageOff(imageName) 
{

currentImage = document.images[imageName];
currentImage.src = "../images/leftnav_buttons/" + imageName + '_off.gif'; 
}

function NewWindow(mypage, img, ptype)
 {
    var w = 200;
    var h = 400;
    var scroll = false;
    
    if (ptype == 'a') {w = 268; h=377;}
    if (ptype == 'b') {w = 356; h=288;}
    if (ptype == 'c') {w = 330; h=425;}		//Natives and Newcomers map2  
    if (ptype == 'd') {w = 400; h=315;}		//Natives and Newcomers progress photos      
    if (ptype == 'e') {w = 400; h=400;}		//LPH / PSE Vert progress photos
    if (ptype == 'f') {w = 400; h=335;}		//LPH / PSE / SS Horz progress photos
    if (ptype == 'g') {w = 600; h=525;}		//Little Pioneers Lrg Map
    
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage +'?Img=' + img, 'Little', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  }

function NewWindowReg(mypage, ptype)
 {  
    var w = 200;		
    var h = 400;
    var scroll = 'yes';
    
    if (ptype == 'a') {w = 700; h=450;}		//Registration pages
    if (ptype == 'b') {w = 356; h=288;}		
    if (ptype == 'c') {w = 600; h=288;}		//ShopTheVillage Click For larger
    if (ptype == 'd') {w = 600; h=288;}		//ShopTheVillage More Info
    if (ptype == 'e') {w = 665; h=425;}		//Redeem Survey Coupon

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, 'Registration', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  }

//  End -->



<!--
//------------------------------------------------------------------------------------------
function isEmpty(str) {
   for (var intLoop = 0; intLoop<str.length; intLoop++)
      if (" " != str.charAt(intLoop))
         return false;
   return true;
}
function checkForm(f)
  {
            for (var intLoop = 0; intLoop<f.elements.length; intLoop++)
               if ("required"==f.elements[intLoop].className) {
                  if (isEmpty(f.elements[intLoop].value) == true)
                  {
                    alert("All red fields are required.");
                    return false; }
                  }
  }

//------------------------------------------------------------------------------------------
//-->

