/*************
Copyright © 1999-2004 Hostedware Corporation. All rights reserved.

All licensed and private-label versions of this application must retain this copyright notice intact on all pages.

All text, images, graphics, animations, and other materials on this website are subject to the copyrights and other intellectual property rights of Hostedware Corporation. 
These materials may not be copied for commercial use or distribution, nor may these materials be modified or reposted to other sites without prior written permission from Hostedware Corporation. 
This software application, its components, and all information and materials on the Hostedware web sites are provided "as is" and without warranty of any kind. 
Hostedware Corporation is located on the World Wide Web at http://www.hostedware.com.
For more information contact Hostedware Corporation, 16 Technology Dr Ste 116, Irvine, CA, 92618 USA. (800) 211-6967; (949) 585-1500.
***************/
function chkDomain(var1){
var sMyString = parent.document.location.href;
var chkdomain = var1.split(' ');
var blndomain

	for(var i in chkdomain)
	{

		if (sMyString.indexOf(chkdomain[i]) != -1) {
			blndomain=1;
		}

	}
	
	if (blndomain!=1) {
		self.location.href=("error.asp"); 
	}
	
}

function openWindow(var1, var2, var3) {
	var sMyString = parent.document.location.href;
	document.cookie = "popupID=" + var1;
	window.open("popup.asp?ref=" + sMyString, "popup", "width=" + var2,"height=" + var3,"scrollbars=no");
}

function getRef(var1) {
	var sMyString = parent.document.location.href;
	document.frmPoll.httpReferer.value = sMyString;
}

function createtextbox(){
if (document.frmMember) {
  var list = document.frmMember.country_id;
  var listIndex = list.selectedIndex;
  var theDiv = document.getElementById("testDiv");
  theDiv.className = "unseen";
  if (list.options[list.selectedIndex].value == "81") {
      theDiv.className = "seen";
      document.frmMember.txtOther.focus();
  }
}
}

function createtextboxco(){
if (document.frmCompany) {
  var list = document.frmCompany.country;
  var listIndex = list.selectedIndex;
  var theDiv = document.getElementById("testDiv");
  theDiv.className = "unseen";
  if (list.options[list.selectedIndex].value == "81") {
      theDiv.className = "seen";
      document.frmCompany.txtOther.focus();
  }
}
}

function createtextboxbuy(){
if (document.frmBuyResponse) {
  var list = document.frmBuyResponse.x_Country;
  var listIndex = list.selectedIndex;
  var theDiv = document.getElementById("testDiv");
  theDiv.className = "unseen";
  if (list.options[list.selectedIndex].value == "81") {
      theDiv.className = "seen";
      document.frmBuyResponse.txtOther.focus();
  }
}
}
/*************
Copyright © 1999-2004 Hostedware Corporation. All rights reserved.

All licensed and private-label versions of this application must retain this copyright notice intact on all pages.

All text, images, graphics, animations, and other materials on this website are subject to the copyrights and other intellectual property rights of Hostedware Corporation. 
These materials may not be copied for commercial use or distribution, nor may these materials be modified or reposted to other sites without prior written permission from Hostedware Corporation. 
This software application, its components, and all information and materials on the Hostedware web sites are provided "as is" and without warranty of any kind. 
Hostedware Corporation is located on the World Wide Web at http://www.hostedware.com.
For more information contact Hostedware Corporation, 16 Technology Dr Ste 116, Irvine, CA, 92618 USA. (800) 211-6967; (949) 585-1500.
***************/