// JavaScript Document

// Client-side functionality for the redeem gift card pages

// 



function popup(pageVar)

{

   leftPos = 0;

   topPos = 0;

   if (screen)

   {

      leftPos = (screen.width/2)-150;

	  topPos = (screen.height/2)-200;

   }

   popupWindow = window.open(pageVar, 'popupWin','width=520,height=420,left='+leftPos+',top='+topPos);

}



function submitVerify(thisform)

{

	// verify their form submit

   

   if (thisform.id.value.length == 0)

   {

	  alert("Please enter in your gift card ID");

	  thisform.id.focus();

	  return false;

   }

   

   if (thisform.pass.value.length == 0)

   {

	  alert("Please enter in your gift card password");

	  thisform.pass.focus();

	  return false;

   }

   

   return true;

}

