//window function global variable
var w_question = '';
//end window function global variable

function OpenWinSignupQuestion(url,w,h) {
	var opened = 1
	w_question = window.open(url,"questions","left=0,top=0,resizable=yes,width=1,height=1,scrollbars=yes")
	for (sizeheight = 1; sizeheight < h; sizeheight += 7) {
		w_question.resizeTo(35, sizeheight);
	}
	for (sizewidth = 35; sizewidth < w; sizewidth += 7) {
		w_question.resizeTo(sizewidth, sizeheight);
	}
}

function ShowSelectedState(sState){
	if(sState == "NONE"){
	} else {
		var i = 0;
		var x = document.forms[0].State.length;
		for(i=0; i<x; i++){
			if(document.forms[0].State.options[i].value == sState){
				document.forms[0].State.options[i].selected = true;
			}
		}
	}
}

function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

function show(id){
if (ns4) document.layers[id].visibility = "show"
else
if (ie4) document.all[id].style.visibility = "visible"
}

function hide(id){
if (ns4) document.layers[id].visibility = "hide"
else
if (ie4) document.all[id].style.visibility = "hidden"
}

arrowon = new Image;
arrowon.src = "http://www.godebtfree.com/images/leftnavarrow_over.gif";
arrowoff = new Image;
arrowoff.src = "http://www.godebtfree.com/images/leftnavarrow_off.gif";

function swapImg(imgId,newSrc) {
   document.images[imgId].src=eval(newSrc+'.src');
}

function OpenWin(url,name,w,h) {
	var winl = (screen.width - w - 27);
	var att = 'WIDTH='+ w +',HEIGHT='+ h +',TOOLBAR=NO,SCROLLBARS=YES,MENU=NO,STATUS=NO,RESIZABLE=NO,LEFT=' + winl + ',TOP=68'
	var w = window.open(url,name,att);
	self.name="Main";
	w.opener = self;
}

function OpenWinResiz(url,name,w,h) {
	var winl = (screen.width - w - 27);
	var att = 'WIDTH='+ w +',HEIGHT='+ h +',TOOLBAR=NO,SCROLLBARS=YES,MENU=NO,STATUS=NO,RESIZABLE=YES,LEFT=' + winl + ',TOP=68'
	var w = window.open(url,name,att);
	self.name="Main";
	w.opener = self;
}
function mover(obj) {
	obj.src = 'images/'+obj.name+'_over.gif';
}
function mout(obj) {
	obj.src = 'images/'+obj.name+'_off.gif';
}

