<!--

NN6=false;
if(navigator.appVersion.indexOf('MSIE')!=-1) MSIE=true; 
  else MSIE=false;
if (navigator.userAgent.indexOf('Netscape6')!==-1) NN6=true;

function openInter(type){

  if (document.getElementById)
  if(type=='on')
    document.getElementById("idd").style.visibility="visible"; 
      else document.getElementById("idd").style.visibility="hidden";

  return false;
}

function SessionID(){
  sessionid='';
  tmp=window.location.pathname.split('$sessionid$');
  if (tmp[1]) sessionid=';$sessionid$'+tmp[1].toString(); else {
    tmp=window.location.pathname.split('jsessionid=');
    if (tmp[1]) sessionid=';jsessionid='+tmp[1].toString(); else sessionid='';
  }
  this.sessionid=sessionid;

}

SessionID.prototype = new Object();


function open_pop(url) {
  glos=window.open(url,"glossary",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=360,height=520');
  glos.focus();
}


function openw(url,x,y,sb,extra){
  if (!x){x=740;};
  if (!y){y=520;};
  if (sb) sbOn="yes"; else sbOn="no";
  if (!extra) extra=""; 
  window.open(url,'members','width='+x+',height='+y+',scrollbars='+sbOn+extra);
}

function populate(linkid){

  pat=/MSIE 4.\d{0,3}\; Mac/g;
  browser=''+navigator.userAgent;
  if(browser.match(pat)) setTimeout('html=ln.render();',500); else html=ln.render();

  if(linkid>=0)
   	ln.items[linkid].expand();
}

function changeImg(src,identifier){
eval('document.'+identifier+'.src='+src+'.src;');
}
     
var fs=10;

expandImg=new Image();
//expandImg.src='http://www.basem.co.uk/images/expand.gif';
expandImg.src='./images/expand.gif';
collapseImg=new Image();
//collapseImg.src='http://www.basem.co.uk/images/collapse.gif';
collapseImg.src='./images/collapse.gif';

//--- Array  ---

function Array_find(value){
for (var i=0; i<this.length; i++){
  if (this[i]==value) return i; 
}
return -1;
}

Array.prototype = new Array();
Array.prototype.find=Array_find;


//--- LeftNav ---
function LeftNav(parentPath,objectPath,targetFrame,obj){
  this.parentPath=parentPath; this.objectPath=objectPath; this.targetFrame=targetFrame;
  this.items=new Array();
  if (obj){
    for (var i=0; i<obj.length; i++)this.items[i]=eval('new navItem('+this.parentPath+','+this.parentPath+'.items['+i+'],'+this.targetFrame+','+obj[i]+');');
  }
}


<!--
function LeftNav_render(){
 html="";
 for (var i=0; i<this.items.length; i++) html+=this.items[i].render();
 html+='<br>';
 eval(''+this.targetFrame+'.innerHTML="'+html+'";');
}

function LeftNav_rerender(){
 html="";
 for (var i=0; i<this.items.length; i++) html+=this.items[i].html; 
 html+='<br>';
 eval(''+this.targetFrame+'.innerHTML="'+html+'";');
}

//-->


function LeftNav_closeAll(){
 for (var i=0; i<this.items.length; i++)
  if (this.items[i].icon[0]=='collapse'){ 
  this.items[i].icon[0]="expand";
     tmp=this.items[i].render();
	 break;
  } 
}

LeftNav.prototype = new Object();
LeftNav.prototype.render=LeftNav_render;
LeftNav.prototype.rerender=LeftNav_rerender;
LeftNav.prototype.closeAll=LeftNav_closeAll;

//--- navItem ---
function navItem(parentPath,objectPath,title,obj,href){
  this.parentPath=parentPath; this.objectPath=objectPath; this.targetFrame=eval(this.parentPath+'.targetFrame');
  this.links=new Array();
  this.text=[""]; this.href=["#"]
  this.icon=["expand"];
  if (title) this.text[0]=title;
  this.nolinks=true;
  this.html=[""];
  winpath=window.location.pathname.replace(/;[\$j]sessionid[\$=]\w+/,"");
  query=window.location.search.replace(/\?lang=\w{2}_\w{2}/,""); 
  winpath+=query;
  
  if (obj){
	for (var i=0; i<obj.length; i++){
	  eval("this.links["+i+"]=new navLink('"+this.objectPath+"','"+this.objectPath+".links["+i+"]',this.targetFrame,obj[i]);");       
          if((obj[i].href && winpath==obj[i].href.toString())
		  ||(obj[i].mhrefs && obj[i].mhrefs.find(winpath)>-1)) this.icon=["collapse"];
        }
	this.nolinks=false;
  } 
  if (href)  this.href[0]=href;
}


<!--
function navItem_render(){
  html="<table summary='Basem Member Menu' cellpadding=0 cellspacing=0 border=0 width=100% bgcolor=#E8E8E8>";

  if (this.nolinks){
    obj=new Object();
    obj.text=this.text; obj.href=this.href;
    eval("this.links[0]=new navLink('"+this.objectPath+"','"+this.objectPath+".links[0]',this.targetFrame,obj);");
    html+=this.links[0].render();
  } else{
  if (this.icon[0]=="expand"){
	html+="<tr><td bgcolor=#E8E8E8 ";
	html+="title='"+this.text+"' onMouseOver='"+this.objectPath+".onmouseOver(this);' onmouseOut='"+this.objectPath+".onmouseOut(this);'";
	html+=" onclick='"+this.objectPath+".expand(); return false;'><table summary='Basem Member Menu' cellpadding=0 cellspacing=0 border=0><tr><td valign=center><a title='"+this.text+"' href=# onclick='"+this.objectPath+".expand(); return false;'><img alt='"+this.text+"' src='"+expandImg.src+"' width=30 height=26 border=0></a></td><td valign=center>";
	html+="<font face='verdana,sans-serif' color=#000000 style='text-decoration:none;'><b>"+this.text[0]+"</b>";
	html+="</td></tr></table></td></tr>";
	html+="<tr><td bgcolor=#D3D3D3><img src=images/x.gif alt='"+this.text+"' width=1 height=1></td></tr>";
  } else{    
	html+="<tr><td width=199 height=30 bgcolor=#E8E8E8 ";
	html+="title='"+this.text+"' onMouseOver='"+this.objectPath+".onmouseOver(this);' onmouseOut='"+this.objectPath+".onmouseOut(this);'";
	html+=" onclick='"+this.objectPath+".collapse(); return false;'><table summary='Basem Member Menu' cellpadding=0 cellspacing=0 border=0><tr><td valign=center><a title='"+this.text+"' href=# onclick='"+this.objectPath+".collapse(); return false;'><img alt='"+this.text+"' src='"+collapseImg.src+"' width=30 height=26 border=0></a></td><td valign=center>";
	html+="<font face='verdana,sans-serif' color=#000000 style='text-decoration:none;'><b>"+this.text[0]+"</b>";
	html+="</td></tr></table></td></tr>";	
	html+="<tr><td bgcolor=#D3D3D3><img src=images/x.gif alt='"+this.text+"' width=1 height=2></td></tr>";
	html+=this.renderLinks();
	html+="<tr><td bgcolor=#D3D3D3><img src=images/x.gif alt='"+this.text+"' width=1 height=1></td></tr>";	  
  }
  }
  html+="</table>";
  this.html[0]=html;
  return html;
}
//-->


function navItem_renderLinks(){
  html="";
  for (var i=0; i<this.links.length; i++) html+=this.links[i].render();
  return html;
}

function navItem_expand(){
  eval(this.parentPath+'.closeAll();');
  this.icon[0]="collapse";
  tmp=this.render(); 
  eval(this.parentPath+'.rerender();');
}

function navItem_collapse(){
 this.icon[0]="expand";
  tmp=this.render();
  eval(this.parentPath+'.rerender();');
}
//rollover colour
function navItem_onmouseOver(obj){
  color=eval("obj");
  color.bgColor="#31A087";
  color.style.cursor='hand';
}

function navItem_onmouseOut(obj){
  color=eval("obj");
  color.bgColor="#E8E8E8";
}

navItem.prototype = new Object();
navItem.prototype.render=navItem_render;
navItem.prototype.renderLinks=navItem_renderLinks;
navItem.prototype.expand=navItem_expand;
navItem.prototype.collapse=navItem_collapse;
navItem.prototype.onmouseOver=navItem_onmouseOver;
navItem.prototype.onmouseOut=navItem_onmouseOut;
if (navigator.appName.match('Net') && navigator.appVersion.match('4.0')) navItem.prototype.renderOld=navItem_renderOld;
 

//--- navLink ---
function navLink(parentPath,objectPath,targetFrame,obj){
  this.parentPath=parentPath; this.objectPath=objectPath; this.targetFrame=targetFrame;
  this.text=[""]; this.href=["#"];
  tmp=this.objectPath.replace(/\./g,""); tmp=tmp.replace(/\[/g,""); tmp=tmp.replace(/\]/g,"");
  this.id=tmp;
  this.win_props=[""];
  this.newWin=false;
  this.hasMembers=false;
  if (obj){
    this.text[0]=obj.text; this.href[0]=obj.href;
	if (obj.win_props) {this.win_props[0]=obj.win_props; this.newWin=true;}
	if (obj.mhrefs) {this.mhrefs=obj.mhrefs; this.hasMembers=true;}
  }
}


<!--
function navLink_render(){
  var winpath=window.location.pathname.replace(/;[\$j]sessionid[\$=]\w+/,"");
  tmp=new SessionID();
  if (!this.href[0].toString().match('ir_site')) sessionid=tmp.sessionid; else sessionid='';
  query=window.location.search.replace(/\?lang=\w{2}_\w{2}/,""); 
  winpath+=query;
  if (this.href[0].toString().match(/#\w*/g)) winpath+=window.location.hash;
  if (winpath==this.href[0]||this.hasMembers&&this.mhrefs.find(winpath)>-1) 
    {
    html="<tr><td width=100% height=30><table summary='Basem Member Menu' cellpadding=0 cellspacing=0 border=0 width=100% bgcolor=#F4F4F4><tr><td width=30><img src=images/x.gif alt='"+this.text[0]+"' width=30 height=1></td><td width=100% height=30><a title='"+this.text[0]+"' href=# onclick='return false;' style='font-family: verdana, arial,sans-serif; color:#009966; text-decoration:none; font-size:"+fs+"px;'>"+this.text[0]+"</a></td><td width=16 valign=center><img alt='"+this.text[0]+"' src=images/ln_arrow.gif border=0></td></tr></table></td></tr>";	
  }	
  else{
    html="<tr><td width=100% bgcolor=#F4F4F4><table summary='Basem Member Menu' cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=30><img src=images/x.gif alt='"+this.text[0]+"' width=30 height=1></td><td width=100% height=30><a href="
	if (!this.newWin){
	  html+=this.href[0]+sessionid+"";
	  if(this.href[0].toString().indexOf(winpath)!=-1) html+=" onclick='populate();'";
	  } 
	  else html+="# onclick='"+this.objectPath+".popWin();'";
	html+=" id="+this.id+" class=leftnav title='"+this.text[0]+"'>";
	html+=this.text[0]+"</a></td><td width=16><img src=images/x.gif alt='"+this.text[0]+"' width=19 height=1></td></tr></table></td></tr>";
  }	
  html+="<tr><td bgcolor=#D3D3D3><img src=images/x.gif alt='"+this.text[0]+"' width=1 height=1></td></tr>";
  return html;
}

//-->

function navLink_popWin(){
window.open(this.href[0],"",""+this.win_props[0].toString()+"");
}

navLink.prototype = new Object();
navLink.prototype.render=navLink_render;
navLink.prototype.popWin=navLink_popWin;
if (navigator.appName.match('Net') && navigator.appVersion.match('4.0')) 
navLink.prototype.renderOld=navLink_renderOld;
 
//-->

winlocation=window.location.pathname;  

target='document.all.leftnav';

ln=new LeftNav('ln','ln',target);


set0=[
{text:'View Profile', href:"members.php?Call=editprofile&linkid=0"},
{text:'Change Password', href:"members.php?Call=changepassword&linkid=0"},
{text:'Edit Alert Options', href:"members.php?Call=emaildetails&linkid=0"},
{text:'Saved Members Details', href:"members.php?Call=showmemberdetails&linkid=0"}
];
ln.items[0]=new navItem("ln","ln.items[0]","Your Details",set0)

set1=[
{text:'Postcode Search', href:"basem.php?Call=postcode&linkid=1" },
{text:'List Alphabetically', href:"basem.php?Call=list&linkid=1"} ,
{text:'Latest Members', href:"basem.php?Call=latest&linkid=1"}
];
ln.items[1]=new navItem("ln","ln.items[1]","BASEM Members",set1)

set2=[
{text:'Start a New Discussion', href:"forum.php?Call=show&linkid=2" },
{text:'Subscribe to Discussions', href:"forum.php?Call=par_dis&linkid=2" },
{text:'Unsubscribe from Discussions', href:"forum.php?Call=un_dis&linkid=2" },
{text:'View all Discussions', href:"forum.php?Call=que_all&linkid=2" },
{text:'View Forum Rules and Guidelines', href:"article.php?id=346&catid=41" },
{text:'Edit Forum Options', href:"forum.php?Call=forum&linkid=2" }
];

ln.items[2]=new navItem("ln","ln.items[2]","<font color=red>NEW:</font> Email Forum",set2)

set3=[
{text:'Minutes Of Council Meeting', href:"newsletter.php?Call=council&linkid=3"}
];

ln.items[3]=new navItem("ln","ln.items[3]","News",set3)

set4=[
{text:'Current Polls', href:"polls.php?Call=&linkid=4"},
{text:'View Votes', href:"polls.php?Call=view_votes&linkid=4"}
];

ln.items[4]=new navItem("ln","ln.items[4]","Polls",set4)


set5=[
{text:'Current Competition', href:"competition.php?Call=showpagedata&linkid=5"},
{text:'Entry Form', href:"competition.php?Call=&linkid=5"},
{text:'View Votes', href:"competition.php?Call=viewvotes&linkid=5"}
];

ln.items[5]=new navItem("ln","ln.items[5]","Competition",set5)

set6=[
{text:'View Latest Newsletter', href:"newsletter.php?Call=&linkid=6"},
{text:'Newsletter Archive', href:"newsletter.php?Call=newsletter_archive&linkid=6"}
];

ln.items[6]=new navItem("ln","ln.items[6]","BASEM Today",set6)

set7=[
{text:'View All', href:"opportunity.php?Call=&linkid=7"},
{text:'Post An Appointment &amp; Opportunity', href:"opportunity.php?Call=addtypes&linkid=7"}
];

ln.items[7]=new navItem("ln","ln.items[7]","Appointments &amp; Opportunities",set7)

set8=[
{text:'Online Shop', href:"shop.php?Call=&linkid=8"},
{text:'Shipping Addresses', href:"shipping_details.php?linkid=8"}
];

ln.items[8]=new navItem("ln","ln.items[8]","Merchandise",set8)

set9=[
{text:'Notes', href:"newsletter.php?Call=forum&linkid=9"}
];

ln.items[9]=new navItem("ln","ln.items[9]","Inter-Professional Forum meetings",set9)

set10=[
{text:'General Comments', href:"member_comments.php?Call=&linkid=10"},
{text:'Newsletter Comments', href:"member_comments.php?Call=newsletter&linkid=10"},
{text:'Congress Comments', href:"member_comments.php?Call=congress&linkid=10"},
{text:'Website &amp; Technical Comments', href:"member_comments.php?Call=website&linkid=10"}
];

ln.items[10]=new navItem("ln","ln.items[10]","Members Comments",set10)

set11=[
{text:'Search Questions &amp; Answers', href:"basem_archive.php?linkid=11"},
{text:'Education', href:"education.php?Call=&linkid=11"},
{text:'Past Newsletters', href:"basem_archive.php?Call=pastnews&linkid=11"},
{text:'Memorandum', href:"basem_archive.php?Call=memorandum&linkid=11"},
{text:'Online Gallery', href:"basem_archive.php?Call=gallery&linkid=11"}
];

ln.items[11]=new navItem("ln","ln.items[11]","BASEM Archive",set11)




//-->


function validate_frmlogin()
{
	if(frmlogin.username.value=="")
	{
		alert("Please enter the username");
		frmlogin.username.select();
		return false;
	}
	if(frmlogin.password.value=="")
	{
		alert("Please enter the password");
		frmlogin.password.select();
		return false;
	}
}

function validate_addquestion()
{
	frm=document.frm_addquestion;
	if(frm.question.value=="")
	{
		alert("Please enter the question");
		frm.question.select();
		return false;
	}
}
function validate_frmlogin1()
{
	if(frmlogin1.username.value=="")
	{
		alert("Please enter the username");
		frmlogin1.username.select();
		return false;
	}
	if(frmlogin1.password.value=="")
	{
		alert("Please enter the password");
		frmlogin1.password.select();
		return false;
	}
}


function viewWin(id)
	{
	var mybars='width=640,height=400,directories=no,location=no,menubar=no,status=no,screenX=0,screenY=0';
	mybars+=',titlebar=no,toolbar=no';
	myoptions='scrollbars=yes,resizeable=yes';
	myfeatures=mybars+ ','+myoptions
	var newin=open("showimages.php?id="+id,'mydoc',myfeatures);
	}
	
	
function validate_checkout_form()
{
var frm = document.checkout_form;
if (frm.title.value =='') {alert("Please enter the title"); frm.title.focus();return false;}
if (frm.bfname.value =='') {alert("Please enter the first name"); frm.bfname.focus();return false;}
if (frm.blname.value =='') {alert("Please enter the last name"); frm.blname.focus();return false;}
if (frm.email.value =='') {alert("Please enter the email address"); frm.email.focus();return false;}
if (!validateEmail(frm.email.value)) {alert ("Please enter the correct email address") ; frm.email.focus(); return false ; }

if (frm.phone.value =='') {alert("Please enter the telephone number"); frm.phone.focus();return false;}

if (frm.address1.value =='') {alert("Please enter the address"); frm.address1.focus();return false;}
if (frm.city.value =='') {alert("Please enter the city"); frm.city.focus();return false;}
if (frm.zip.value =='') {alert("Please enter the postal code"); frm.zip.focus();return false;}

if (frm.sfname.value =='') {alert("Please enter the first name"); frm.sfname.focus();return false;}
if (frm.slname.value =='') {alert("Please enter the last name"); frm.slname.focus();return false;}
if (frm.shaddress1.value =='') {alert("Please enter the (delivery) address"); frm.shaddress1.focus();return false;}
if (frm.shcity.value =='') {alert("Please enter the (delivery) town"); frm.shcity.focus();return false;}
if (frm.shzip.value =='') {alert("Please enter the (delivery) postal code"); frm.shzip.focus();return false;}
if (frm.shphone.value =='') {alert("Please enter the (delivery) telephone number"); frm.shphone.focus();return false;}
//if (frm.nletter.value =='') {alert("Please select format of newsletter"); frm.nletter.focus();return false;}
//if (frm.velden.value =='') {alert("Please select How did you find out about Velden"); frm.velden.focus();return false;}

}

function fill()
{
var frm = document.checkout_form;
if (frm.fname.value =='') {alert("Please enter the first name"); frm.fname.focus();return false;}
if (frm.lname.value =='') {alert("Please enter the last name"); frm.lname.focus();return false;}
if (frm.company.value =='') {alert("Please enter Company name"); frm.company.focus();return false;}
if (frm.address1.value =='') {alert("Please enter Address"); frm.address1.focus();return false;}
if (frm.city.value =='') {alert("Please enter the City"); frm.city.focus();return false;}
if (frm.zip.value =='') {alert("Please enter the Zip"); frm.zip.focus();return false;}
if (frm.email.value =='') {alert("Please enter the email address"); frm.email.focus();return false;}
if (frm.password.value =='') {alert("Please enter the password"); frm.password.focus();return false;}
if (frm.password1.value != frm.password.value) {alert("Both passwords do not match."); frm.password1.focus();return false;}
if (!validateEmail(frm.email.value)) {alert ("Please enter the correct email address") ; frm.email.focus(); return false ; }
if (frm.website.value =='') {alert("Please enter Website"); frm.website.focus();return false;}
if (frm.phone.value =='') {alert("Please enter the telephone number"); frm.phone.focus();return false;}
if (frm.contact.value =='') {alert("Please enter the Contact Method"); frm.contact.focus();return false;}
}

function filldealer()
{
var frm = document.checkout_form;
if (frm.fname.value =='') {alert("Please enter the first name"); frm.fname.focus();return false;}
if (frm.lname.value =='') {alert("Please enter the last name"); frm.lname.focus();return false;}
if (frm.company.value =='') {alert("Please enter Company name"); frm.company.focus();return false;}
if (frm.address1.value =='') {alert("Please enter Address"); frm.address1.focus();return false;}
if (frm.city.value =='') {alert("Please enter the City"); frm.city.focus();return false;}
if (frm.zip.value =='') {alert("Please enter the Zip"); frm.zip.focus();return false;}
if (frm.email.value =='') {alert("Please enter the email address"); frm.email.focus();return false;}
if (!validateEmail(frm.email.value)) {alert ("Please enter the correct email address") ; frm.email.focus(); return false ; }
if (frm.phone.value =='') {alert("Please enter the telephone number"); frm.phone.focus();return false;}
}

function fillgeneral()
{
var frm = document.checkout_form;
if (frm.fname.value =='') {alert("Please enter the first name"); frm.fname.focus();return false;}
if (frm.lname.value =='') {alert("Please enter the last name"); frm.lname.focus();return false;}
if (frm.company.value =='') {alert("Please enter Company name"); frm.company.focus();return false;}
if (frm.email.value =='') {alert("Please enter the email address"); frm.email.focus();return false;}
if (!validateEmail(frm.email.value)) {alert ("Please enter the correct email address") ; frm.email.focus(); return false ; }
if (frm.phone.value =='') {alert("Please enter the telephone number"); frm.phone.focus();return false;}
}


function validate_billing_form()
{
var frm = document.billing_form;
if (frm.title.value =='') {alert("Please enter the title"); frm.title.focus();return false;}
if (frm.bfname.value =='') {alert("Please enter the first name"); frm.bfname.focus();return false;}
if (frm.blname.value =='') {alert("Please enter the last name"); frm.blname.focus();return false;}
if (frm.email.value =='') {alert("Please enter the email address"); frm.email.focus();return false;}
if (!validateEmail(frm.email.value)) {alert ("Please enter the correct email address") ; frm.email.focus(); return false ; }

if (frm.phone.value =='') {alert("Please enter the daytime telephone number"); frm.phone.focus();return false;}

if (frm.address1.value =='') {alert("Please enter the address"); frm.address1.focus();return false;}
if (frm.city.value =='') {alert("Please enter the town"); frm.city.focus();return false;}

if (frm.zip.value =='') {alert("Please enter the postal code"); frm.zip.focus();return false;}
}

function getbilling()
{
var frm = document.checkout_form;
//frm.shhouse_no.value = frm.house_no.value;
frm.shaddress1.value = frm.address1.value;
frm.shaddress2.value = frm.address2.value;
frm.shcity.value = frm.city.value;
//frm.shstate.value = frm.state.value;
frm.shzip.value = frm.zip.value;
frm.shphone.value = frm.phone.value;
//frm.shhphone.value = frm.hphone.value;
//frm.shmobile.value = frm.mobile.value;
}

function validateEmail(email){
	
	// This function is used to validate a given e-mail 
	// address for the proper syntax
	
	if (email == ""){
		return false;
	}
	badStuff = ";:/,' \"\\";
	for (i=0; i<badStuff.length; i++){
		badCheck = badStuff.charAt(i)
		if (email.indexOf(badCheck,0) != -1){
			return false;
		}
	}
	posOfAtSign = email.indexOf("@",1)
	if (posOfAtSign == -1){
		return false;
	}
	if (email.indexOf("@",posOfAtSign+1) != -1){
		return false;
	}
	posOfPeriod = email.indexOf(".", posOfAtSign)
	if (posOfPeriod == -1){
		return false;
	}
	if (posOfPeriod+2 > email.length){
		return false;
	}
	return true
}

function validate_frmship()
{	
	var frm = document.frm_c;
	if(frm.cfname.value=="")
	{
		alert("Please enter the card holder first name");
		frm.cfname.select();
		return false;
	}
	if(frm.clname.value=="")
	{
		alert("Please enter the card holder last name");
		frm.clname.select();
		return false;
	}
	if(frm.cardtype.value=="")
	{
		alert("Please select the card type");
		frm.cardtype.focus();
		return false;
	}
	if(frm.cardcode.value=="")
	{
		alert("Please enter the card code");
		frm.cardcode.select();
		return false;
	}
	
	if(frm.cardno.value=="")
	{
		alert("Please enter the card number");
		frm.cardno.select();
		return false;
	}
	if(frm.expmonth.value=="")
	{
		alert("Please select the expiry month");
		frm.expmonth.focus();
		return false;
	}
	if(frm.expyear.value=="")
	{
		alert("Please enter the expiry year");
		frm.expyear.focus();
		return false;
		
	}

}

function validate_frmsearch()
{
	if(frmsearch.search.value=="")
	{
		alert("Search field cannot be left blank");
		frmsearch.search.select();
		return false;
	}
}

var br=brPlatform="";
if(navigator.appVersion.indexOf("Win")!=-1) var brPlatform="windows";
else var brPlatform="Other";

function movewin() { return; }

function movewin(win, width, height) 
{
	var fullWidth = screen.availWidth;
	var fullHeight = screen.availHeight;
	var x = (fullWidth/2)-(width/2);
	var y = (fullHeight/2)-(height/2);
	win.moveTo(x,y); 
}

function viewWin(filenames)
	{
	
	var mybars='width=450,height=500,directories=no,location=no,menubar=no,status=no,screenX=0,screenY=0';
	mybars+=',titlebar=no,toolbar=no';
	myoptions='scrollbars=yes,resizeable=yes';
	myfeatures=mybars+ ','+myoptions
	
	var newwin=window.open(filenames,'mydoc',myfeatures);
		movewin(newwin, 450, 500);
	
	    if (navigator.appName=="Netscape") newwin.location=url;
		newwin.opener=window;
		newwin.focus();
		return false;
	}
	
function viewWinsmall(filenames)
	{
	
	var mybars='width=300,height=300,directories=no,location=no,menubar=no,status=no,screenX=0,screenY=0';
	mybars+=',titlebar=no,toolbar=no';
	myoptions='scrollbars=yes,resizeable=yes';
	myfeatures=mybars+ ','+myoptions
	
	var newwin=window.open(filenames,'mydoc',myfeatures);
		movewin(newwin, 300, 300);
	
	    if (navigator.appName=="Netscape") newwin.location=url;
		newwin.opener=window;
		newwin.focus();
		return false;
	}

var timerID;
function winStatus(txt) {
 
	var displayMe;
	if(txt) displayMe=txt;
	else displayMe="";
	if(timerID) clearTimeout(timerID);
	if(br=="NS6") timerID=setTimeout("window.status='"+displayMe+"'",1);
	else window.status=displayMe;
	return true;
}

function viewWin1(filenames)
{
	
	filenames=filenames;
	width='800';
	height='550';
		
	var newwin = window.open(filenames, 'mydoc', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,maximize=0,width='+width+',height='+height);
	
	movewin(newwin, width, height);
	    if (navigator.appName=="Netscape") 
	        newwin.location=url;
		
		newwin.opener=window;
		newwin.focus();
		return false;
}