function changeStyle(id, newClass) {
		alert("test"):
		var identity=document.getElementById(id);
		identity.className=newClass;
	}



//////////////////////////////
// Function: confirmForRedirect
// Purpose: Prompts user with strMessage.  
//          A confirmation results in a 
//          redirection to strUrl.
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function confirmForRedirect(strUrl, strMessage){
   if(!confirm(strMessage)){
      return;
   }
   window.location = strUrl;
}

function confirmPopupWindow(strMessage, strUrl, intWidth, intHeight){
   if(!confirm(strMessage)){
      return;
   }
   var i = window.open(strUrl, "DLX_CONF", "alwaysRaised=yes,menubar=no,width="+intWidth+",height="+intHeight+",toolbar=no,scrollbars=yes,resizable=yes");
   i.focus();
}

//////////////////////////////
// Function: showPopupWindow
// Purpose: Popup help window
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showPopupWindow(strUrl){
   var i = window.open(strUrl, "deluxe1", "alwaysRaised=yes,menubar=yes,width=800,height=700,toolbar=yes,scrollbars=yes,resizable=no");
   i.focus();
}

//////////////////////////////
// Function: showPopupWindow2
// Purpose: Popup help window
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showPopupWindow2(strUrl, intWidth){
   var i = window.open(strUrl, "deluxe2", "alwaysRaised=yes,menubar=no,width="+intWidth+",height=350,toolbar=no,scrollbars=yes,resizable=no");
   i.focus();
}

//////////////////////////////
// Function: showPopupWindow3
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showPopupWindow3(strUrl, intWidth, intHeight){
   var i = window.open(strUrl, "deluxe3", "alwaysRaised=yes,menubar=no,width="+intWidth+",height="+intHeight+",toolbar=no,scrollbars=yes,resizable=no");
   i.focus();
}

//////////////////////////////
// Function: showPopupWindow4
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showPopupWindow4(strUrl,name){
   var i = window.open(strUrl, name, "alwaysRaised=yes,menubar=no,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
   i.focus();
}

//////////////////////////////
// Function: showPopupWindow5
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showPopupWindow5(strUrl, name ,intWidth, intHeight){
   var i = window.open(strUrl, name, "alwaysRaised=yes,menubar=no,width="+intWidth+",height="+intHeight+",toolbar=no,scrollbars=no,resizable=no");
   i.focus();
}


//////////////////////////////
// Function: showPopupWindow3
// @date: 05/17/2000
// @author: dvella1@hotmail.com
//////////////////////////////
function showCenterPopupWindow(strUrl, intWidth, intHeight,centerLeft,centerTop){
   var i = window.open(strUrl, "deluxe3", "alwaysRaised=yes,menubar=no,width="+intWidth+",height="+intHeight+",left="+centerLeft+",top="+centerTop+",toolbar=no,scrollbars=yes,resizable=no");
   i.focus();
}





function showPopupWindow(strUrl, hwnd, menubar, width, height, toolbar, scrollbars, resizable){
   //center this window on the screen...
   var x = screen.width/2 - width/2;
   var y = screen.height/2 - height/2;
   var i = window.open(strUrl, hwnd, "alwaysRaised=yes,menubar="+(menubar?"yes":"no")+",width="+width+",height="+height+",toolbar="+(toolbar?"yes":"no")+",scrollbars="+(scrollbars?"yes":"no")+",resizable="+(resizable?"yes":"no")+",screenX="+x+",screenY="+y);
   i.moveTo(x, y);
   i.focus();
}

function reload(){
   window.location.reload();
}

function goToAnchor(strAnchor){
   window.location.hash=strAnchor;
}

function sendRedirect(strUrl){
   window.location = strUrl;
}



function toggleAll(_form, _obj, _name){
	if(_obj.checked){
		checkAll(_form, _name);
	}else{
		uncheckAll(_form, _name);	
	}
}

function checkAll(_form, _name){
   for (var i=0;i<_form.elements.length;i++) {
      if (_form.elements[i].name==_name) {
         _form.elements[i].checked=true;
      }
   }
}


function uncheckAll(_form, _name){
   for (var i=0;i<_form.elements.length;i++) {
      if (_form.elements[i].name==_name) {
         _form.elements[i].checked=false;
      }
   }
}



// Declaring required variables
var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";
// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";
// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
	s=stripCharsInBag(strPhone,validWorldPhoneChars);
	return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}


/*
function ValidateForm(){
	var Phone=document.frmSample.txtPhone
	
	if ((Phone.value==null)||(Phone.value=="")){
		alert("Please Enter your Phone Number")
		Phone.focus()
		return false
	}
	if (checkInternationalPhone(Phone.value)==false){
		alert("Please Enter a Valid Phone Number")
		Phone.value=""
		Phone.focus()
		return false
	}
	return true
 }
 
*/ 