var remoteC2T = new Object();
remoteC2T.closed = true;
function openWind(url, width, height){
  var WinName = "" + width + "x" + height
  remoteC2T = eval("window.open(url, WinName, 'scrollbars=no,width=" + width + ",height=" + height + "')");
  remoteC2T.focus();
}

function validC2TPhoneUS(fm, width, height){
	if(fm.txtusphnum1.value.length!=3 || isNaN(fm.txtusphnum1.value) || fm.txtusphnum2.value.length!=3 || isNaN(fm.txtusphnum2.value) || fm.txtusphnum3.value.length!=4 || isNaN(fm.txtusphnum3.value)){
		alert("A valid US phone number is required");
		return false;
	}
	else{
		fm.target = "" + width + "x" + height
		openWind("", 470, 440);
		return true;
	}
}

function C2TautoTab(field1, len, field2){
	if(field1.value.length == len){
		field2.focus();
		return true;
	}else{
		return false;
	}
}

function C2TFocus(obj){obj.focus();}

function roll(obj, s){
	if(remoteC2T.closed == true){obj.src=s;}
}
