<!--
// JavaScript Document
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x; d.gete
}




function checkform(userName,password){
		{//alert('ok');alert(MM_findObj(userName).value);
			if(MM_findObj(userName).value==''){alert("UserName is required.");return false;}
			if(MM_findObj(password).value==''){alert("Password is required.");return false;}
			return true;
		}
	}
	

var where = new Array(6); 
function comefrom(loca,locacity) { this.loca = loca; this.locacity = locacity; } 
where[0]= new comefrom("United States","Any|Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Washington DC|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming");
where[1]= new comefrom("Canada","Any|Ontario|Alberta|Prince Edward|Newfoundland|British Columbia|Nunavut|Manitoba|Nova Scotia|New Brunswick|Saskatchewan|Quebec|Yukon");
where[2]= new comefrom("United Kingdom","Any|East|Home Counties|London|Midlands|Northeast|Northern Ireland|Northwest|Scotland|South|Southwest|Wales|Guernsey|Isle Of Man|Jersey|Shetland");
where[3]= new comefrom("Australia","Any|Australian Capital Territory|New South Wales|Northern Territory|Queensland|South Australia|Tasmania|Vctoria|Western Australia|Victoria");
where[4]= new comefrom("Hong Kong","Any|Central And Western|Eastern|Islands|Kowloon City|Kwai Tsing|Kwun Tong|North|Sai Kung|Sha Tin|Sham Shui Po|Southern|Tai Po|Tsuen Wan|Tuen Mun|Wan Chai|Wong Tai Sin|Yau Tsim Mong|Yuen Long");
where[5]= new comefrom("Singapore","Any|East|North|South|West");
//where[6]= new comefrom("Denmark","All");
//where[7]= new comefrom("DoDDs Schools","All");
//where[8]= new comefrom("Finland","All");
//where[9]= new comefrom("Netherlands","All");
//where[10]= new comefrom("New Zealand","All");
//where[11]= new comefrom("Sweden","All");
//where[12]= new comefrom("Norway","All");

function select(country,state) {
with(state)
{ 
	j=length;
	for (i=0;i<j;i++) remove(0);
}
var eItem;
with(country) { var loca2 = options[selectedIndex].value; }
for(i = 0;i < where.length;i ++) 
{
if (where[i].loca == loca2) 
{
loca3 = (where[i].locacity).split("|");
for(j = 0;j < loca3.length;j++) 
{ with(state) 
	{
	    eItem = document.createElement ("OPTION");
        add (eItem);
        eItem.innerText = loca3[j];
        eItem.value = loca3[j];
        selectedIndex = length - 1;
 	}
}
break;
}
}
if (i>=where.length) 
	state.disabled=true;
else
	state.disabled=false;

}

function init(country,state) {
with(country) {
length = where.length;
for(k=0;k<where.length;k++) { options[k].text = where[k].loca; options[k].value = where[k].loca; }
}
with(state) {
loca3 = (where[0].locacity).split("|");
length = loca3.length;
for(l=0;l<length;l++) { options[l].text = loca3[l]; options[l].value = loca3[l]; }
}}

function selectCombo(a,b)
{
	for (i=0;i<a.length;i++)
	{
		if (a.options[i].value.toUpperCase()==b.toUpperCase())
		{
			a.options.selectedIndex=i;
			break;
		}
		a.options.selectedIndex=0;
	}
	
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->

