// JavaScript Document

//function for popup window
var lists=new Array();
var lists1=new Array();
var centers=new Array();
var emptycenters=new Array();
emptycenters[0]	= new Array('Choose','Choose');

function emptyList(box) 
{		alert("hai2");	
	while (box.options.length) box.options[0] = null;
}

function fillList( box, arr ) 
{
	alert(box);	
	for ( i = 0; i < arr[0].length; i++ ) 
	{	
		opton = new Option( arr[0][i], arr[0][i+1] );
		box.options[box.length] = opton;
		i=i+1;
	}
	box.selectedIndex=0;
}

function changeList(box) 
{
		//alert("hai");
	//alert(box.options[box.selectedIndex].value);
	//alert(lists[box.options[box.selectedIndex].value]);
	list = lists[box.options[box.selectedIndex].value];
	alert(list);
	if(box.options[box.selectedIndex].value != "select" && box.options[box.selectedIndex].value != "Choose" && box.options[box.selectedIndex].value != "")
	{
		
		emptyList(box.form.txtleft);
		fillList(box.form.txtleft, list);
	}
}
function changeListattribute( box ) 
	{
		list = lists[box.options[box.selectedIndex].value];
		emptyList( box.form.txtleft);
		fillList( box.form.txtleft,list);
	}

function popupmenus(url)
{
	width=screen.width;
	//height=screen.height;
	center=width/2;
	//center1=height/2;
	leftpos=center-244;
	//toppos=center1-150;
	newwindow=window.open(url,'ImageDisplay','height=700,width=500,left='+leftpos+',top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function gotores(val)
{
	if(val=="jump")
	{
	 return false;
	}
	else
	{
		var res="resister";	
          location.href="memberregister.php?regionid="+val+"&regis="+res;
		
	}
}
function gotoadvan(val,sex,con,usn)
{
	if(val=="jump")
	{
	 return false;
	}
	else
	{
		var res="resister";	
          location.href="advancesearch.php?regionid="+val+"&sex="+sex+"&country="+con+"&user="+usn;
		
	}
}

//script for member registration
function member_reg(task)
{	
	
	 var firstname = document.CustomersForm.firstname.value;
	 if (firstname == "" )
	 { 
	 alert ("Please enter the First Name");
	 document.CustomersForm.firstname.focus();
	 return false;
	 }
	 var lastname = document.CustomersForm.lastname.value; 
	 if (lastname == "")
	 { 
	 alert ("Please enter the Last Name");
	 document.CustomersForm.lastname.focus();
	 return false;
	 }
	  var sex = document.CustomersForm.sex.value; 
	 if (sex == "choose")
	 { 
	 alert ("Please select your sex");
	 document.CustomersForm.sex.focus();
	 return false;
	 }
	 var emailid = document.CustomersForm.emailid.value;
	 if (emailid == "")
	 { 
	 alert ("Please enter the Email Address");
	 document.CustomersForm.emailid.focus();
	 return false;
	 }	
	 if (!validateEmail(document.CustomersForm.emailid.value,1,1)) 
	 {
	 document.CustomersForm.emailid.focus();
	 return false;
	 }
	 var address1 = document.CustomersForm.address.value;
	 //if (address1 == "" )
	 //{ 
	 //alert ("Please enter the Address");
	 //document.CustomersForm.address.focus();
	 //return false;
	 //}
	 var city=document.CustomersForm.city.value;
	 //if (city=="" )
	 //{ 
	 //alert ("Please enter the City Name");
	 //document.CustomersForm.city.focus();
	 //return false;
	 //}
	 var state = document.CustomersForm.state.value;
	 //if (state == "")
	 //{ 
	 //alert ("Please enter the State Name");
	 //document.CustomersForm.state.focus();
	 //return false;
	 //}
	  var zipcode = document.CustomersForm.zipcode.value;
	 //if (zipcode == "" )
	 //{ 
	 //alert ("Please enter the Post Code");
	 //document.CustomersForm.zipcode.focus();
	 //return false;
	 //}	
	 //if (isNaN(document.CustomersForm.zipcode.value))
	 //{ 
	 //alert ("Post Code must be numeric");
	 //document.CustomersForm.zipcode.focus();
	 //return false;
	 //}	
	 var country=document.CustomersForm.country.value;
	 if (country == "Choose")
	 { 
	 alert ("Plese select Country");
	 document.CustomersForm.country.focus();
	 return false;
	 }
	 var region=document.CustomersForm.region.value;
	 if (region == "Choose")
	 { 
	 alert ("Plese select size region");
	 document.CustomersForm.region.focus();
	 return false;
	 }
	var txtleft=document.CustomersForm.leftsize.value;
	 if (txtleft == "Choose")
	 { 
	 alert ("Plese select Left foot size");
	 document.CustomersForm.leftsize.focus();
	 return false;
	 }
	var txtright=document.CustomersForm.rightsize.value;
	 if (txtright == "Choose")
	 { 
	 alert ("Plese select Right foot size");
	 document.CustomersForm.rightsize.focus();
	 return false;
	 }	
	 //var favorite=document.CustomersForm.favorite.value;
	 //if (favorite == "Choose")
	 //{ 
	 //alert ("Plese select Favorite footwear");
	 //document.CustomersForm.favorite.focus();
	 //return false;
	 //}
	 //var additionalinfo=document.CustomersForm.additionalinfo.value;
	 //if (additionalinfo == "")
	 //{ 
	 //alert ("Plese enter the additional Information");
	 //document.CustomersForm.additionalinfo.focus();
	 //return false;
	 //}
	 if(task != "edit")
	 {
		 var  Username= document.CustomersForm.username.value;
		 if (Username == "")
		 { 
		 alert ("Please enter the User Name");
		 document.CustomersForm.username.focus();
		 return false;
		 }	
		 var  password= document.CustomersForm.password.value;
		 if (password == "")
		 { 
		 alert ("Please enter the password");
		 document.CustomersForm.password.focus();
		 return false;
		 }	
		 var  confirmpass= document.CustomersForm.confirmpass.value;
		 if (confirmpass == "")
		 { 
		 alert ("Please enter the Confirm Password");
		 document.CustomersForm.confirmpass.focus();
		 return false;
		 }	
		 if (password != confirmpass)
		 { 
		 alert ("Password and Confirm Password must be the same");
		 document.CustomersForm.confirmpass.focus();
		 return false;
		 }	
	 }

}

function searchvalidation(rows)
{
 txtCourse="";
   txtCourseLength = document.contactfrm.USERS.length;
   var i=0;
  if(rows > 1){
   for(CourseIndex = 0; CourseIndex < rows; CourseIndex++ ){
    if(document.contactfrm.USERS[CourseIndex].checked == false){
     i=i+1;
    }
   }
   if(i==rows)
   {
    alert("Please atleast one");
    return false;
   } 
  }
if(rows == 1)
{
if(document.contactfrm.USERS.checked == false){
alert("Please atleast one");
    return false;
}
}
  }
function deletefun()
{
var selaction=document.deletefrm.action.value;
if(selaction=="choose")
{
alert("Please select delete action");
return false;
}
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;
if(deltxtlen > 0){
var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ ){
	
    if(document.deletefrm.USER[CourseIndex].checked==true){
	i=i+1;
     	var delname=document.deletefrm.USER[CourseIndex].value;
	document.deletefrm.action="sendmessages.php?task=delete&mid="+delname;
	document.deletefrm.submit();	
//window.location.href="sendmessages.php?task=delete&mid="+delname;
    }
}
if(i==0)
{
alert("select anyone");
}
 }
else{
var a=0;
if(document.deletefrm.USER.checked==true){
a=a+1;
 var delname=document.deletefrm.USER.value;
document.deletefrm.action="sendmessages.php?task=delete&mid="+delname;
document.deletefrm.submit();
//window.location.href="sendmessages.php?task=delete&mid="+delnam;
}
if(a==0){
alert("select any one");

}
}
}
function deleteinboxfun()
{
var selaction=document.deletefrm.action.value;
if(selaction=="choose")
{
alert("Please select delete action");
return false;
}
if(selaction=="delete")
{
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;

if(deltxtlen > 0){
var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ ){
	
    if(document.deletefrm.USER[CourseIndex].checked==true){
	i=i+1;
     	var delname=document.deletefrm.USER[CourseIndex].value;
		
window.location.href="inboxmessages.php?task=delete&mid="+delname;
    }
}
}
}
if(selaction=="new")
{
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;

if(deltxtlen > 0){
var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ ){
	
    if(document.deletefrm.USER[CourseIndex].checked==true){
	i=i+1;
     	var delname=document.deletefrm.USER[CourseIndex].value;
		
window.location.href="inboxmessages.php?status=New&mid="+delname;
    }
}
}}
if(selaction=="read")
{
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;

if(deltxtlen > 0){
var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ ){
	
    if(document.deletefrm.USER[CourseIndex].checked==true){
	i=i+1;
     	var delname=document.deletefrm.USER[CourseIndex].value;
		
window.location.href="inboxmessages.php?status=Old&mid="+delname;
    }
}
}}
if(i==0)
{
alert("select anyone");
}

 
}

function selectch()
{
if(document.deletefrm.del.checked==true)
{
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;

if(deltxtlen > 0){

var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ )
	{
    document.deletefrm.USER[CourseIndex].checked=true;
}
}
else
{
document.deletefrm.USER.checked=true;
}
}
if(document.deletefrm.del.checked==false)
{
var deltxtlen="";
deltxtlen=document.deletefrm.USER.length;

if(deltxtlen > 0){

var i=0;
   for(CourseIndex = 0; CourseIndex < deltxtlen; CourseIndex++ )
	{
    document.deletefrm.USER[CourseIndex].checked=false;
}
}
else
{
document.deletefrm.USER.checked=false;
}

}
}

function send_validation()
{
 var tomail=document.message_frm.tomail.value;
var Subject=document.message_frm.Subject.value;
var Message=document.message_frm.Message.value;
if(tomail=="Type UserName")
{
alert("Please enter the To Name");
document.message_frm.tomail.focus();
return false;
}
if(Subject=="")
{
alert("Please enter the Subject");
document.message_frm.Subject.focus();
return false;
}
if(Message=="")
{
alert("Please enter the Message");
document.message_frm.Message.focus();
return false;
}

}
function send_validations()
{
 
var Subject=document.message_frm.Subject.value;
var Message=document.message_frm.Message.value;

if(Subject=="")
{
alert("Please enter the Subject");
document.message_frm.Subject.focus();
return false;
}
if(Message=="")
{
alert("Please enter the Message");
document.message_frm.Message.focus();
return false;
}

}
function index_frmvalid()
{
var sex=document.indexfrm.sex.value;
var region=document.indexfrm.region.value;
var txtleft=document.indexfrm.txtleft.value;
var txtright=document.indexfrm.txtright.value;
 	if(sex == "choose")
	 { 
	 alert ("Plese select sex");
	 document.indexfrm.sex.focus();
	 return false;
	 }
	if(region == "choose")
	 { 
	 alert ("Plese select Size Region");
	 document.indexfrm.region.focus();
	 return false;
	 }		
	 if (txtleft == "choose")
	 { 
	 alert ("Plese select Left foot size");
	 document.indexfrm.txtleft.focus();
	 return false;
	 }
	
	 if (txtright == "choose")
	 { 
	 alert ("Plese select Right foot size");
	 document.indexfrm.txtright.focus();
	 return false;
	 }	
 	 
	
}
function advance_frmvalid()
{

var username=document.indexfrmad.username.value;
var country=document.indexfrmad.country.value;
var sex=document.indexfrmad.sex.value;
var region=document.indexfrmad.region.value;
var txtleft=document.indexfrmad.txtleft.value;
var txtright=document.indexfrmad.txtright.value;

	if((country == "Choose") && (sex == "choose") && (region == "choose") && (txtleft == "choose") && (txtright == "choose"))
	 { 
	 alert ("Plese select any one");
	 document.indexfrmad.country.focus();
	 return false;
	 }
	 	 
	
}
//script for forgot password

function forgot_validation()
{
		 if (document.forgot_frm.txtUsername.value== "" )
		 { 
			 alert ("Please enter the Email Address");
			 document.forgot_frm.txtUsername.focus();
			 return false;
		 }
		if (!validateEmail(document.forgot_frm.txtUsername.value,1,1)) 
		{
		document.forgot_frm.txtUsername.focus();
		return false;
		}
}

function validateEmail(addr,man,db) {
	if (addr == '' && man) {
	   if (db) alert('Email address is mandatory');
	   return false;
	}
	var invalidChars = '\/\'\\ ";:?!()[]\{\}^|';
	for (i=0; i<invalidChars.length; i++) {
	   if (addr.indexOf(invalidChars.charAt(i),0) > -1) {
		  if (db) alert('Email address contains invalid characters');
		  return false;
	   }
	}
	for (i=0; i<addr.length; i++) {
	   if (addr.charCodeAt(i)>127) {
		  if (db) alert("Email address contains non ascii characters.");
		  return false;
	   }
	}
	var atPos = addr.indexOf('@',0);
	if (atPos == -1) {
	   if (db) alert('Email address must contain an @');
	   return false;
	}
	if (atPos == 0) {
	   if (db) alert('Email address must not start with @');
	   return false;
	}
	if (addr.indexOf('@', atPos + 1) > - 1) {
	   if (db) alert('Email address must contain only one @');
	   return false;
	}
	if (addr.indexOf('.', atPos) == -1) {
	   if (db) alert('Email address must contain a period in the domain name');
	   return false;
	}
	if (addr.indexOf('@.',0) != -1) {
	   if (db) alert('period must not immediately follow @ in email address');
	   return false;
	}
	if (addr.indexOf('.@',0) != -1){
	   if (db) alert('period must not immediately precede @ in email address');
	   return false;
	}
	if (addr.indexOf('..',0) != -1) {
	   if (db) alert('two periods must not be adjacent in email address');
	   return false;
	}
	var suffix = addr.substring(addr.lastIndexOf('.')+1);
	if (suffix.length != 2 && suffix != 'com' && suffix != 'net' && suffix != 'org' && suffix != 'edu' && suffix != 'int' && suffix != 'mil' && suffix != 'gov' & suffix != 'arpa' && suffix != 'biz' && suffix != 'aero' && suffix != 'name' && suffix != 'coop' && suffix != 'info' && suffix != 'pro' && suffix != 'museum') {
	   if (db) alert('invalid primary domain in email address');
	   return false;
	}
return true;
}
function login_validation()
{
		 if (document.Login.txtUsername.value== "" )
		 { 
			 alert ("Please enter the Username");
			 document.Login.txtUsername.focus();
			 return false;
		 }

		 if (document.Login.txtPassword.value== "" )
		 { 
			 alert ("Please enter the Password");
			 document.Login.txtPassword.focus();
			 return false;
		 }
}
function loginvalidation2()
{
		 if (document.memberlogin2.txtUsername.value== "" )
		 { 
			 alert ("Please enter the Username");
			 document.memberlogin2.txtUsername.focus();
			 return false;
		 }

		 if (document.memberlogin2.txtPassword.value== "" )
		 { 
			 alert ("Please enter the Password");
			 document.memberlogin2.txtPassword.focus();
			 return false;
		 }
}
function pass_validate()
{
	     var Old = document.frm_change.Old.value;
		 if (Old == "" )
		 { 
			 alert ("Please enter Your Old Password");
			 document.frm_change.Old.focus();
			 return false;
		 }
		 var Password = document.frm_change.Password.value;
		 if (Password == "" )
		 { 
			 alert ("Please enter Your New Password");
			 document.frm_change.Password.focus();
			 return false;
		 }
		 var Conpassword = document.frm_change.Conpassword2.value;
		 if (Conpassword == "" )
		 { 
			 alert ("Please enter Your Confirm Password");
			 document.frm_change.Conpassword2.focus();
			 return false;
		 }
		 var Conpassword = document.frm_change.Conpassword2.value;
		 if (document.frm_change.Conpassword2.value != document.frm_change.Password.value)
		 { 
			 alert ("Paasword and Confirm Password must be same");
			 document.frm_change.Conpassword2.focus();
			 return false;
		 }
}

function forgot_validation()
{
		 if (document.forgot_frm.txtUsername.value== "" )
		 { 
			 alert ("Please enter the Email Address");
			 document.forgot_frm.txtUsername.focus();
			 return false;
		 }
		if (!validateEmail(document.forgot_frm.txtUsername.value,1,1)) 
		{
		document.forgot_frm.txtUsername.focus();
		return false;
		}
}

function sendMessage()
{
	var Subject= document.message_frm.Subject.value;
	 if (Subject== "" )
	 { 
		 alert ("Please enter Subject");
		 document.message_frm.Subject.focus();
		 return false;
	 }
		 
	var Message = document.message_frm.Message.value;
	 if (Message == "" )
	 { 
		 alert ("Please enter Message");
		 document.message_frm.Message.focus();
		 return false;
	 }
}

function composeMessage()
{
	selectAll(document.message_frm.Recipients);
	if(document.message_frm.Recipients.length == 0)
	{
		 alert ("Please Select atleast One Recipient");
		 deselectAll(document.message_frm.Recipients);
		 return false;
	}
	
	var Subject= document.message_frm.Subject.value;
	 if (Subject== "" )
	 { 
		 alert ("Please enter Subject");
		 document.message_frm.Subject.focus();
		 deselectAll(document.message_frm.Recipients);
		 return false;
	 }
		 
	var Message = document.message_frm.Message.value;
	 if (Message == "" )
	 { 
		 alert ("Please enter Message");
		 document.message_frm.Message.focus();
		 deselectAll(document.message_frm.Recipients);
		 return false;
	 }
}


// To Validate Password Field in changepassword file
function change_pass()
{
	     var oldpassword = document.ChangePass.oldpassword.value;
		 if (oldpassword == "" )
		 { 
			 alert ("Please enter Your Old Password");
			 document.ChangePass.oldpassword.focus();
			 return false;
		 }
		 var newpassword = document.ChangePass.newpassword.value;
		 if (newpassword == "" )
		 { 
			 alert ("Please enter Your New Password");
			 document.ChangePass.newpassword.focus();
			 return false;
		 }
		 var newpassword = document.ChangePass.newpassword.value;
		 if (document.ChangePass.newpassword.value.length < 6)
		 { 
			 alert ("New Password must be greater than 5 character");
			 document.ChangePass.newpassword.focus();
			 return false;
		 }
		 var confirmpassword = document.ChangePass.confirmpassword.value;
		 if (confirmpassword == "" )
		 { 
			 alert ("Please enter Your Confirm Password");
			 document.ChangePass.confirmpassword.focus();
			 return false;
		 }
		 var confirmpassword = document.ChangePass.confirmpassword.value;
		 if (document.ChangePass.confirmpassword.value != document.ChangePass.newpassword.value)
		 { 
			 alert ("Paasword and Confirm Password must be same");
			 document.ChangePass.confirmpassword.focus();
			 return false;
		 }
}
//script for Registration
function Registerationvalidation()
{
	if(document.form_registration.username.value=="")
	{
		alert("Please Enter the Username");
		document.form_registration.username.focus();
		return false;
	}
	if(document.form_registration.password.value=="")
	{
		alert("Please Enter the Password");
		document.form_registration.password.focus();
		return false;
	}
	if(document.form_registration.confirmpass.value=="")
	{
		alert("Please Enter the Confirm Password");
		document.form_registration.confirmpass.focus();
		return false;
	}
		if(document.form_registration.confirmpass.value != document.form_registration.password.value)
		{
			alert("Password and Confirm Password Must be Same");
			document.form_registration.confirmpass.value="";
			document.form_registration.confirmpass.focus();
			return false;
		}
		if(document.form_registration.emailid.value=="")
		{
		alert("Please Enter the Email ID");
		document.form_registration.emailid.focus();
		return false;
		}
		 if (!validateEmail(document.form_registration.emailid.value,1,1)) 
		 {
		 document.form_registration.emailid.focus();
		 return false;
		 }
		
	if(document.form_registration.Month.value=="")
	{
		alert("Please Select the Month");
		document.form_registration.Month.focus();
		return false;
	}
	if(document.form_registration.Date.value=="")
	{
		alert("Please Select the Date");
		document.form_registration.Date.focus();
		return false;
	}
	if(document.form_registration.Year.value=="")
	{
		alert("Please Select the Year");
		document.form_registration.Year.focus();
		return false;
	}
	
		 gender="";
		 txtgenderLength = document.form_registration.gender.length;
		 var i=0;
		if(txtgenderLength > 1){
			for(GenIndex = 0; GenIndex < txtgenderLength; GenIndex++ ){
				if(document.form_registration.gender[GenIndex].checked == false){
					i=i+1;
				}
			}
		}
		if(i==txtgenderLength)
		{
			alert("Please select the gender");
			return false;
		}
	
	if(document.form_registration.Address.value=="")
	{
		alert("Please Enter Address");
		document.form_registration.Address.focus();
		return false;
	}

	if(document.form_registration.City.value=="")
	{
		alert("Please Enter City");
		document.form_registration.City.focus();
		return false;
	}

	if(document.form_registration.ZipCode.value=="")
	{
		alert("Please Enter ZipCode");
		document.form_registration.ZipCode.focus();
		return false;
	}

	if(document.form_registration.State.value=="")
	{
		alert("Please Enter State");
		document.form_registration.State.focus();
		return false;
	}
	
	
	if(document.form_registration.country.value=="Choose")
	{
		alert("Please Select the country");
		document.form_registration.country.focus();
		return false;
	}
	if(document.form_registration.Relation.value=="")
	{
		alert("Please Select the Relationship Status");
		document.form_registration.Relation.focus();
		return false;
	}
	if(document.form_registration.Job.value=="")
	{
		alert("Please Select the Job Category");
		document.form_registration.Job.focus();
		return false;
	}
	if(document.form_registration.varAboutMember.value=="")
	{
		alert("Please enter the short description of yourself.");
		document.form_registration.varAboutMember.focus();
		return false;
	}

	
}

function editmember_validation()
{
	if(document.form_registration.firstname.value=="")
		{
		alert("Please Enter the Firstname");
		document.form_registration.firstname.focus();
		return false;
		}
		if(document.form_registration.lastname.value=="")
		{
		alert("Please Enter the lastname");
		document.form_registration.lastname.focus();
		return false;
		}
	
		if(document.form_registration.emailid.value=="")
		{
		alert("Please Enter the Email ID");
		document.form_registration.emailid.focus();
		return false;
		}
		 if (!validateEmail(document.form_registration.emailid.value,1,1)) 
		 {
		 document.form_registration.emailid.focus();
		 return false;
		 }
		
	if(document.form_registration.Month.value=="")
	{
		alert("Please Select the Month");
		document.form_registration.Month.focus();
		return false;
	}
	if(document.form_registration.Date1.value=="")
	{
		alert("Please Select the Date");
		document.form_registration.Date1.focus();
		return false;
	}
	if(document.form_registration.Year.value=="")
	{
		alert("Please Select the Year");
		document.form_registration.Year.focus();
		return false;
	}
	
		 gender="";
		 txtGenderLength = document.form_registration.gender.length;
		 var i=0;
		if(txtGenderLength > 1){
			for(GenIndex = 0; GenIndex < txtGenderLength; GenIndex++ ){
				if(document.form_registration.gender[GenIndex].checked == false){
					i=i+1;
				}
			}
		}
		if(i==txtGenderLength)
		{
			alert("Please select the Gender");
			return false;
		}

	if(document.form_registration.Address.value=="")
	{
		alert("Please Enter Address");
		document.form_registration.Address.focus();
		return false;
	}

	if(document.form_registration.City.value=="")
	{
		alert("Please Enter City");
		document.form_registration.City.focus();
		return false;
	}

	if(document.form_registration.ZipCode.value=="")
	{
		alert("Please Enter ZipCode");
		document.form_registration.ZipCode.focus();
		return false;
	}

	if(document.form_registration.State.value=="")
	{
		alert("Please Enter State");
		document.form_registration.State.focus();
		return false;
	}


	if(document.form_registration.country.value=="Choose")
	{
		alert("Please Select the country");
		document.form_registration.country.focus();
		return false;
	}
	if(document.form_registration.Relation.value=="")
	{
		alert("Please Select the Relationship Status");
		document.form_registration.Relation.focus();
		return false;
	}
	
	if(document.form_registration.Job.value=="")
	{
		alert("Please Select the Job Category");
		document.form_registration.Job.focus();
		return false;
	}
	
	ShowAge="";
		 txtshowagelength = document.form_registration.ShowAge.length;
		 var i=0;
		if(txtshowagelength > 1){
			for(GenIndex = 0; GenIndex < txtshowagelength; GenIndex++ ){
				if(document.form_registration.ShowAge[GenIndex].checked == false){
					i=i+1;
				}
			}
		}
		if(i==txtshowagelength)
		{
			alert("Please select the display age");
			return false;
		}
		
		ShowName="";
			 txtshownamelength = document.form_registration.ShowName.length;
			 var i=0;
			if(txtshownamelength > 1){
				for(GenIndex = 0; GenIndex < txtshownamelength; GenIndex++ ){
					if(document.form_registration.ShowName[GenIndex].checked == false){
						i=i+1;
					}
				}
			}
			if(i==txtshownamelength)
			{
				alert("Please select the display name");
				return false;
			}
	if(document.form_registration.Children.value=="")
	{
		alert("Please Select the children");
		document.form_registration.Children.focus();
		return false;
	}
	if(document.form_registration.Education.value=="")
	{
		alert("Please Select the Education Level");
		document.form_registration.Education.focus();
		return false;
	}
	if(document.form_registration.Houseincome.value=="")
	{
		alert("Please Select the Houseincome");
		document.form_registration.Houseincome.focus();
		return false;
	}


}

function loginvalidation()
{
	var txtuser= document.form_login_ind.txtuser.value;
		 if (txtuser== "" )
		 { 
			 alert ("Please enter the username");
			 document.form_login_ind.txtuser.focus();
			 return false;
		 }
				 
	var txtpass = document.form_login_ind.txtpass.value;
		 if (txtpass == "" )
		 { 
			 alert ("Please enter the Password");
			 document.form_login_ind.txtpass.focus();
			 return false;
		 }
}
function logvalidation()
{
	var txtuser= document.frm_login.txtuser.value;
		 if (txtuser== "" )
		 { 
			 alert ("Please enter the username");
			 document.frm_login.txtuser.focus();
			 return false;
		 }
				 
	var txtpass = document.frm_login.txtpass.value;
		 if (txtpass == "" )
		 { 
			 alert ("Please enter the Password");
			 document.frm_login.txtpass.focus();
			 return false;
		 }
}
// Function to move one list box to another

<!--
     function MoveOption(objSourceElement, objTargetElement)
     {
   var aryTempSourceOptions = new Array();
   var aryTempTargetOptions = new Array();
   var x = 0;
   
   //looping through source element to find selected options
   for (var i = 0; i < objSourceElement.length; i++) {
    if (objSourceElement.options[i].selected) {
     //need to move this option to target element
     var intTargetLen = objTargetElement.length++;
     objTargetElement.options[intTargetLen].text = objSourceElement.options[i].text;
     objTargetElement.options[intTargetLen].value = objSourceElement.options[i].value;
    }
    else {
     //storing options that stay to recreate select element
     var objTempValues = new Object();
     objTempValues.text = objSourceElement.options[i].text;
     objTempValues.value = objSourceElement.options[i].value;
     aryTempSourceOptions[x] = objTempValues;
     x++;
    }
   }

   //sorting and refilling target list
   for (var i = 0; i < objTargetElement.length; i++) {
    var objTempValues = new Object();
    objTempValues.text = objTargetElement.options[i].text;
    objTempValues.value = objTargetElement.options[i].value;
    aryTempTargetOptions[i] = objTempValues;
   }

   aryTempTargetOptions.sort(sortByText);

   for (var i = 0; i < objTargetElement.length; i++) {
    objTargetElement.options[i].text = aryTempTargetOptions[i].text;
    objTargetElement.options[i].value = aryTempTargetOptions[i].value;
    objTargetElement.options[i].selected = false;
   }
   
   //resetting length of source
   objSourceElement.length = aryTempSourceOptions.length;
   //looping through temp array to recreate source select element
   for (var i = 0; i < aryTempSourceOptions.length; i++) {
    objSourceElement.options[i].text = aryTempSourceOptions[i].text;
    objSourceElement.options[i].value = aryTempSourceOptions[i].value;
    objSourceElement.options[i].selected = false;
   }
     }

     function sortByText(a, b)
     {
   if (a.text < b.text) {return -1}
   if (a.text > b.text) {return 1}
   return 0;
     }

	function selectAll(objTargetElement)
	{
		for (var i = 0; i < objTargetElement.length; i++) 
		{
			objTargetElement.options[i].selected = true;
		}
		return false;
	}

	function deselectAll(objTargetElement)
	{
		for (var i = 0; i < objTargetElement.length; i++) 
		{
			objTargetElement.options[i].selected = false;
		}
		return false;
	}

  //-->
function checkCheckbox(field)
{
	$Flag	=	"false";
	len = field.length;
	var Counter = 0;

	if(document.message_frm.chkCall.checked == true)
		$Flag	=	"true";

	for (i = 0; i < len; i++) 
	{
		if(field[i].checked == true)
		{
			$Flag	=	"true";
			Counter = Counter +1;
		}
	}
	if($Flag == "false")
	{
		alert("Select atleast Anyone Message");
		return false;
	}

}

// this Script is Used for Checkall Checkbox
var checkflag = "false";
function check(field,value) 
{
	var checkflag = value;
	len = field.length;
	if (checkflag == "on") 
	{
		if(len==null)
		{
			field.checked=true;
		}
		else
		{
			for (i = 0; i < len; i++) 
			{
				var chkname	=	field[i].name;
					field[i].checked = true;
			}
		}
		checkflag = "off";
		return "off"; 
	}
	else 
	{
		if(len==null)
		{
			field.checked=false;
		}
		else
		{
			for (i = 0; i < len; i++) 
			{
				var chkname	=	field[i].name;
				field[i].checked = false; 
			}
		}
		checkflag = "on";
		return "on"; 
	}
}//  End -->

function insertMoreUpload() 
{ 
	var nUploads = parseInt(document.getElementById('NumberOfUploads').value)+1;		 
	var tbody    = document.getElementById("tabUpload").getElementsByTagName("tbody")[1]; 
	var row      = document.createElement("TR"); 
	var cell1    = document.createElement("TD");
	cell1.setAttribute("valign","top");
	cell1.setAttribute("align","left");
	cell1.setAttribute("width","8%");
	cell1.setAttribute("class","blackhead");
	cell1.innerHTML = "Photo&nbsp;"+nUploads;

	//insert second <td>
	var cell2 = document.createElement("TD");
	//cell2.setAttribute("colspan","2");
	cell2.setAttribute("valign","top");
	//File
	var eInput = document.createElement("INPUT"); 
	eInput.setAttribute("type","file");
	eInput.setAttribute("name","file" + nUploads);
	eInput.setAttribute("id","file" + nUploads);
	eInput.setAttribute("style", "FONT: 11px Verdana, Arial, Helvetica, sans-seri; text-decoration:none; color: #006699;");	
	cell2.appendChild(eInput);
	var cell3 = document.createElement("TD");
	cell3.setAttribute("align","left");
	cell3.setAttribute("valign","top");
	var eInput = document.createElement("textarea"); 
	eInput.setAttribute("className","tdbor");
	eInput.setAttribute("name","txtComment" + nUploads);
	eInput.setAttribute("id","txtComment" + nUploads);
	cell3.appendChild(eInput);
	// append all <td> to <tr>
	row.appendChild(cell1); 
	row.appendChild(cell2); 
	row.appendChild(cell3); 
	tbody.appendChild(row);
	document.form_upload.NumberOfUploads.value = nUploads;
	return false;
}
function insertMoreUpload2() 
{ 
	var nUploads = parseInt(document.getElementById('NumberOfUploads').value)+1;		 
	var tbody    = document.getElementById("tabUpload").getElementsByTagName("tbody")[1]; 
	var row      = document.createElement("TR"); 
	var cell1    = document.createElement("TD");
	cell1.setAttribute("valign","top");
	cell1.setAttribute("align","left");
	cell1.setAttribute("width","8%");
	cell1.setAttribute("class","blackhead");
	cell1.innerHTML = "Photo&nbsp;"+nUploads;

	//insert second <td>
	var cell2 = document.createElement("TD");
	//cell2.setAttribute("colspan","2");
	cell2.setAttribute("valign","top");
	//File
	var eInput = document.createElement("INPUT"); 
	eInput.setAttribute("type","file");
	eInput.setAttribute("name","file" + nUploads);
	eInput.setAttribute("id","file" + nUploads);
	eInput.setAttribute("style", "FONT: 11px Verdana, Arial, Helvetica, sans-seri; text-decoration:none; color: #006699;");	
	cell2.appendChild(eInput);
	var cell3 = document.createElement("TD");
	cell3.setAttribute("align","left");
	cell3.setAttribute("valign","top");
	var eInput = document.createElement("textarea"); 
	eInput.setAttribute("className","tdbor");
	eInput.setAttribute("name","txtComment" + nUploads);
	eInput.setAttribute("id","txtComment" + nUploads);
	cell3.appendChild(eInput);
	// append all <td> to <tr>
	row.appendChild(cell1); 
	row.appendChild(cell2); 
	row.appendChild(cell3); 
	tbody.appendChild(row);
	document.form1.NumberOfUploads.value = nUploads;
	return false;
}
//Valodation For Myalbum

function myalbumvalidate()
{
	var txtuser= document.myalbum.txt_albumname.value;
		 if (txtuser== "" )
		 { 
			 alert ("Please enter the Album Name");
			 document.myalbum.txt_albumname.focus();
			 return false;
		 }
				 
	var txtpass = document.myalbum.file.value;
		 if (txtpass == "" )
		 { 
			 alert ("Please enter the File");
			 document.myalbum.file.focus();
			 return false;
		 }
	return true;
}
//Validate For Upload File
function uploadvalidate()
{
	var txtuser= document.form1.albumname.value;
		 if (txtuser== "" )
		 { 
			 alert ("Please Select the Album Name");
			 document.form1.albumname.focus();
			 return false;
		 }
				 
	return true;
}
function uploadalbumvalidate()
{ 
	//var upload= document.form_upload.Album.checked;
	if(document.form_upload.Album[0].checked)
	 {
		 if (document.form_upload.AlbumId.value == "")
		 { 
			 alert ("Please Select the Album Name");
			 document.form_upload.AlbumId.focus();
			 return false;
		 }
	} 
	if(document.form_upload.Album[1].checked) 
	{
		if(document.form_upload.AlbumName.value=="")
		{ 
			 alert ("Please Create the Name");
			 document.form_upload.AlbumName.focus();
			 return false;
		 }
	}
	 if (document.form_upload.file1.value == "")
	 { 
		 alert ("Please Select the File to upload");
		 document.form_upload.file1.focus();
		 return false;
	 }
	//return true;
}
function confirmMsg(msg)
{
	if(!confirm(msg))
	 {
		 return false;
	 }
	 else
	 {
		window.location.href="login.php";
		return false;
	 }
}
function topic_validation()
{
	if(document.NewTopicForm.varSubject.value == "")
	{
		alert("Please enter the subject");
		document.NewTopicForm.varSubject.focus();
		return false;
	}
		if(document.NewTopicForm.txtMessage.value == "")
	{
		alert("Please enter the Message");
		document.NewTopicForm.txtMessage.focus();
		return false;
	}
return true;
}
function postmsg()
{
		if(document.reply.txtMessage.value == "")
	{
		alert("Please enter the Message");
		document.reply.txtMessage.focus();
		return false;
	}
return true;
}
function editmsg(thread)
{
	if (thread == "")
	{
		if(document.EditTopicForm.varSubject.value == "")
		{
			alert("Please enter the subject");
			document.EditTopicForm.varSubject.focus();
			return false;
		}
	}
	if(document.EditTopicForm.txtMessage.value == "")
	{
		alert("Please enter the Message");
		document.EditTopicForm.txtMessage.focus();
		return false;
	}
return true;
}
function delconfirmMsg(msg)
{
	if(!confirm(msg))
	 {
		 return false;
	 }
	 else
	 {
		return true;
	 }
}
//script for add more features in text box
function insertMoreUploadGroup() 
{ 
	var nUploads = parseInt(document.getElementById('NumberOfUploadsGroup').value)+1;		 
	var tbody = document.getElementById("tabUpload").getElementsByTagName("tbody")[1]; 
	var row = document.createElement("TR"); 
	var cell1 = document.createElement("TD");
	cell1.setAttribute("align","left");
	cell1.setAttribute("width","42%");
	var eInput = document.createElement("INPUT"); 
	eInput.setAttribute("type","text");
	eInput.setAttribute("name","txtFName" + nUploads);
	eInput.setAttribute("id","txtFName" + nUploads);
/*	eInput.className="tdbor";
*/	cell1.appendChild(eInput);

	//insert Second <td>
	var cell2 = document.createElement("TD");
	cell2.setAttribute("align","left");
	cell2.setAttribute("width","58%");
	var eInput = document.createElement("INPUT"); 
	eInput.setAttribute("type","text");
	eInput.setAttribute("name","txtFEmail" + nUploads);
	eInput.setAttribute("id","txtFEmail" + nUploads);
/*	eInput.className="tdbor";
*/	cell2.appendChild(eInput);
	// append all <td> to <tr>
		row.appendChild(cell1); 
		row.appendChild(cell2); 
	tbody.appendChild(row);
	document.frm_invitefriend.NumberOfUploadsGroup.value = nUploads;
	return false;
}
function invite_validation()
{
	selectAll(document.frm_invitefriend.Recipients);
	if(document.frm_invitefriend.txtInvite.value == "")
	{
		 alert ("Please Enter Welcome Message");
		 document.frm_invitefriend.txtInvite.focus();
		 deselectAll(document.frm_invitefriend.Recipients);
		 return false;
	}
}
function group_validation()
{	
	 var txtGroup = document.frm_addGroup.txtGroup.value;
	 if (txtGroup == "" )
	 { 
	 alert ("Please enter the Group Name");
	 document.frm_addGroup.txtGroup.focus();
	 return false;
	 }
	 if (document.frm_addGroup.txtCategory.value == "Choose" )
	 { 
	 alert ("Please Select the Category");
	 document.frm_addGroup.txtCategory.focus();
	 return false;
	 }
	if (document.frm_addGroup.txtDesc.value == "" )
	 { 
	 alert ("Please Enter the Description");
	 document.frm_addGroup.txtDesc.focus();
	 return false;
	 }
	  if (document.frm_addGroup.country.value == "Choose" )
	 { 
	 alert ("Please Select the Country");
	 document.frm_addGroup.country.focus();
	 return false;
	 }
	  if (document.frm_addGroup.txtCity.value == "" )
	 { 
	 alert ("Please Enter the City");
	 document.frm_addGroup.txtCity.focus();
	 return false;
	 }
}
function confirmMsg1(msg,cid,tid)
{
	if(!confirm(msg))
	 {
		 return false;
	 }
	 else
	 {
		window.location.href="opentopic.php?cId="+cid+"&tid="+tid+"&set=join";
		return false;
	 }
}
function grouptopic_validation()
{
	if(document.NewTopicForm.varSubject.value == "")
	{
		alert("Please enter the Topic");
		document.NewTopicForm.varSubject.focus();
		return false;
	}
		if(document.NewTopicForm.txtMessage.value == "")
	{
		alert("Please enter the Description");
		document.NewTopicForm.txtMessage.focus();
		return false;
	}
return true;
}
//script for edit group validation
function group_validation()
{	
	 var txtGroup = document.frm_addGroup.txtGroup.value;
	 if (txtGroup == "" )
	 { 
	 alert ("Please enter the Group Name");
	 document.frm_addGroup.txtGroup.focus();
	 return false;
	 }
	 if (document.frm_addGroup.txtCategory.value == "Choose" )
	 { 
	 alert ("Please Select the Category");
	 document.frm_addGroup.txtCategory.focus();
	 return false;
	 }
	if (document.frm_addGroup.txtDesc.value == "" )
	 { 
	 alert ("Please Enter the Description");
	 document.frm_addGroup.txtDesc.focus();
	 return false;
	 }
	 if (document.frm_addGroup.txtSearch.value == "" )
	 { 
	 alert ("Please Enter the Search");
	 document.frm_addGroup.txtSearch.focus();
	 return false;
	 }
	  if (document.frm_addGroup.country.value == "Choose" )
	 { 
	 alert ("Please Select the Country");
	 document.frm_addGroup.country.focus();
	 return false;
	 }
if (document.frm_addGroup.txtCity.value == "" )
	 { 
	 alert ("Please Enter the City");
	 document.frm_addGroup.txtCity.focus();
	 return false;
	 }
	 txtMail="";
			 txtshownamelength = document.frm_addGroup.txtMail.length;
			 var i=0;
			if(txtshownamelength > 1){
				for(GenIndex = 0; GenIndex < txtshownamelength; GenIndex++ ){
					if(document.frm_addGroup.txtMail[GenIndex].checked == false){
						i=i+1;
					}
				}
			}
			if(i==txtshownamelength)
			{
				alert("Please select the join request");
				return false;
			}
}

//script for event validation
function event_validation()
{
	if(document.frm_addevent.txtHeading.value=="")
	{
		alert("Please enter the Event Title");
		document.frm_addevent.txtHeading.focus();
		return false;
	}
	if(document.frm_addevent.txtDate.value=="")
	{
		alert("Please enter the Event Date");
		document.frm_addevent.txtDate.focus();
		return false;
	}
	if(document.frm_addevent.txtHour.value=="Select")
	{
		alert("Please Choose the Hour");
		document.frm_addevent.txtHour.focus();
		return false;
	}
	if(document.frm_addevent.txtMinute.value=="Select")
	{
		alert("Please Choose the Minute");
		document.frm_addevent.txtMinute.focus();
		return false;
	}
	if(document.frm_addevent.txtLocation.value=="")
	{
		alert("Please enter the Location");
		document.frm_addevent.txtLocation.focus();
		return false;
	}

	if(document.frm_addevent.txtLevel.value=="")
	{
		alert("Please Choose the priority level");
		document.frm_addevent.txtLevel.focus();
		return false;
	}

}


//script for commend validation
function commentvalidation()
{	
	 var txtGroup = document.form_comment.txtComment.value;
	 if (txtGroup == "" )
	 { 
	 alert ("Please enter the Comment");
	 document.form_comment.txtComment.focus();
	 return false;
	 }
}
//
function openwindow(field,value,rows){
	len2=0;
	if(rows == 1)
	{
		var chkname	=	document.viewcart.chk_list.checked;
		if (chkname == false) 
		{
		len2 = len2 + 1;
		}
		len=1;
		if(len == len2)
		{
		alert("Please Select Atleast one");
		return false;
		}
	}
	else
	{
	len = document.viewcart.chk_list.length;
	for (i = 0; i < len; i++) 
			{
				var chkname	=	document.viewcart.chk_list[i].checked;
					if (chkname == false) 
						{
							len2 = len2 + 1;
						}
			}
			if(len == len2)
			{
				alert("Please Select Atleast one");
				return false;
			}
	}
document.viewcart.action="viewcart.php";
document.viewcart.submit();

}
//checkout
function openw(){
	document.viewcart.action="courses.php?id=4";
	document.viewcart.submit();
}
//keep shoping
function openwindow1(){
	window.location.href="signup.php";
}

function calldel(m)
{
  if(!confirm(m))
  {
    return false;
  }
  else
  return true;
}
startList = function() {

	//code only for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=startList;
function commentsvalidation()
{
	var comments= document.frm_comment.comments.value;
		 if (comments== "" )
		 { 
			 alert ("Please enter the Comments");
			 document.frm_comment.comments.focus();
			 return false;
		 }
				 
}
function membercheck(m)
{
  if(!confirm(m))
  {
    return false;
  }
  else
  {
  	window.location.href="login.php";
  return false;
}
}


function mailvalidation()
{

	 if(document.CustomersForm.f_name.value== "")
			 {
			 alert("Please Enter your Name");
			 document.CustomersForm.f_name.focus();
			 return false;
			 }
	if(document.CustomersForm.f_sender.value== "")
			 {
			 alert("Please Enter your E-Mail Address");
			 document.CustomersForm.f_sender.focus();
			 return false;
			 }
	 if (!validateEmail(document.CustomersForm.f_sender.value,1,1)) 
	 	{
		 document.CustomersForm.f_sender.focus();
		 return false;
	 	}
		mail1=document.CustomersForm.f_recipient.value;
		
	if(mail1== "")
			 {
			 alert("Please Enter Friend  E-Mail Address");
			 document.CustomersForm.f_recipient.focus();
			 return false;
			 }
			
	 if (!validateEmail(document.CustomersForm.f_recipient.value,1,1)) 
	 	{
		 document.CustomersForm.f_recipient.focus();
		 return false;
	 	}
		
		
	if(document.CustomersForm.message.value== "")
			 {
			 alert("Please Enter your Message");
			 document.CustomersForm.message.focus();
			 return false;
			 }


}


/*=======Ver: 7.2.70212========*/
/*DHTMLMenu, (c) 2006, SourceTec Software Co.,LTD  -  www.sothink.com*/
if(typeof st_js=="undefined")
{
	STM_FILTER=1;
	STM_SCROLL=1;
	STM_SLIP=1;
	STM_RTL=0;
	STM_AHCM=0;
	STM_SMSC=1;
	STM_BIMG=1;
	STM_ILOC=0;
	STM_ILINK=0;
	stHAL=["left","center","right"];
	stVAL=["top","middle","bottom"];
	stREP=["no-repeat","repeat-x","repeat-y","repeat"];
	stBDS=["none","solid","double","dotted","dashed","groove","ridge","outset","inset"];
	stENTS=["onmouseover","onmouseout","onclick","onmousedown","onmouseup","onfocus","onblur","onkeydown","onkeyup"];
	st_ld=[];	
	st_lded=0;
	st_ck=[];
	st_ms=[];
	st_imgs=[];
	st_funs=0;
	st_path=stgfd(location.href);
	st_nav=stnav();
	st_cm=st_cp=st_ci= st_tid=0;

	if(!Array.prototype.push)Array.prototype.push=function(){var l=this.length;for(var i=0;i<arguments.length;i++)this[l++]=arguments[i];};
	if(!Array.prototype.pop)Array.prototype.pop=function(){if(this.length){var o=this[this.length-1];this.length--;return o}};
	st_css=0;
	stCSS=
	{
		tb:"width:auto;height:auto;border-style:none;background-color:transparent;background-image:none;",
		tr:"width:auto;height:auto;border-style:none;background-color:transparent;background-image:none;",
		td:"height:auto;border-style:none;background-color:transparent;background-image:none;",
		dv:"margin:0px;padding:0px;background-color:transparent;background-image:none;",
		a:"border-style:none;margin:0px;padding:0px;background-color:transparent;background-image:none;"
	}
	if(document.getElementsByTagName?document.getElementsByTagName("body").length:document.all.tags("body").length)st_css=1;
	else document.write(stStyle());
	st_js=1;
}
function stm_bm(a){var jsp,sc,jsr;if(document.getElementsByTagName)sc=document.getElementsByTagName("script");	else if(document.all.tags)sc=document.all.tags("script");for(var j=0;j<sc.length;j++){jsr=sc[j].src;if(jsr&&jsr.indexOf("stmenu.js")!=-1){jsp=jsr.substring(0,jsr.indexOf("stmenu.js"));break;}}var ip=a[2]?a[2].charAt(a[2].length-1)!="/"?a[2]+"/":a[2]:"",lp=a[15]?a[15].charAt(a[15].length-1)!="/"?a[15]+"/":a[15]:"",jp=a[23]?a[23].charAt(a[23].length-1)!="/"?a[23]+"/":a[23]:"",n=st_ms.length,m;if(typeof jsp!="undefined")jp=jsp;st_cm=st_ms[n]=m={typ:a[4],	id:n,	nam:a[0],ids:a[0]+n,ps:[],x:a[5],y:a[6],hal:a[7],	wid:a[16],	bnk:stbuf(ip+a[3]),usrE:[],cfrm:0,cfsh:1,	tfrn:"",sfrn:"",cfX:0,cfY:0,cfD:0,sc:[0,0],sp:0,deSV:a[9],deSH:a[10],hdp:a[19],deHd:a[19]?a[11]:3000,hdS:a[12],hdO:a[13],hdI:a[14],		hdT:[],lits:a[17],	lnks:[],	litl:a[20],rtl:a[18],imgP:ip,jsP:jp,lnkP:lp,cks:a[8]};m.cur=[stisF(a[21])?"url("+stgPth(3,a[21])+"),auto":a[21],stisF(a[22])?"url("+stgPth(3,a[22])+"),auto":a[22]];if(m.hdS&&(!st_nav.typ&&st_nav.os!="mac"||st_nav.nam=="konqueror"))m.hdT.push("select");if(m.hdI&&(!st_nav.typ&&st_nav.ver<5.5||st_nav.nam=="opera"||st_nav.nam=="konqueror")) m.hdT.push("iframe");	if(m.hdO)	m.hdT.push("object","embed","applet");if(m.lits&1){var li=[];if(m.lits&128)li[0]=1;if(m.lits&64)if(m.rtl)li[6]=1;else li[3]=1;if(m.lits&256)if(m.rtl)li[3]=1;	else li[6]=1;if(m.lits&8)li[9]=1;if(m.lits&16)li[12]=1;if(m.lits&32)li[18]=1;if(m.lits&2)li[21]=1;if(m.lits&4)li[24]=1,li[27]=1;m.hili=stDtB(li);}}
function stm_bp(l,a){var m=st_cm,p,i=st_cp?st_ci:0,j=m.ps.length,st=!j&&!m.typ,tp=stDtB([a[0]]),pd;switch(a[1]){case 1:pd=4;break;case 2:pd=7;break;case 3:pd=1;break;case 4:pd=13;}st_cp=m.ps[j]=p={is:[],typ:tp,		id:j,ids:m.ids+"p"+j,	dir:pd,wid:0,hei:0,		offX:a[2],offY:a[3],mar:a[4],pad:a[5],lms:m.rtl?a[7]:a[6],rms:m.rtl?a[6]:a[7],	bgC:a[17],bgI:stgPth(0,a[18]),bgR:a[19],bd:a[20],bdW:a[21],bdC:a[22],zid:i?i.parP.zid+i.id+5:1000,isSt:st,isSh:0,isOV:0,parI:i,mid:m.id,frm:0,hal:st?m.hal:0,opc:a[8],	shad:a[14],stre:st_nav.typ?0:a[15],sdC:a[16],	efsp:a[13],sc:[0,0],dec:[stgPth(0,a[23]?a[23]:""),stgPth(0,a[30]?a[30]:""),stgPth(0,a[37]?a[37]:""),stgPth(0,a[44]?a[44]:"")],decH:[a[24]?a[24]:0,a[31]?a[31]:0,a[38]?a[38]:0,a[45]?a[45]:0],decW:[a[25]?a[25]:0,a[32]?a[32]:0,a[39]?a[39]:0,a[46]?a[46]:0],decB:[a[26]?a[26]:0,a[33]?a[33]:0,a[40]?a[40]:0,a[47]?a[47]:0],decBC:[a[27]?a[27]:"",a[34]?a[34]:"",a[41]?a[41]:"",a[48]?a[48]:""],decBI:[stgPth(0,a[28]?a[28]:""),stgPth(0,a[35]?a[35]:""),stgPth(0,a[42]?a[42]:""),stgPth(0,a[49]?a[49]:"")],decBR:[a[29]?a[29]:0,a[36]?a[36]:0,a[43]?a[43]:0,a[50]?a[50]:0],cor:[stgPth(0,a[51]?a[51]:""),stgPth(0,a[52]?a[52]:""),stgPth(0,a[53]?a[53]:""),stgPth(0,a[54]?a[54]:"")],args:a };p.onmouseover="stpov";p.onmouseout="stpou";p.lock=i?((m.cks&1)?1:0):0;p.eff=[stgEff(a[9],a[10],a[13],1,p.isSt),stgEff(a[11],a[12],a[13],2,p.isSt)];if(p.eff[0]||p.eff[1]) m.ieff=1;if(st&&!a[0]) p.wid=m.wid;if(i) i.subP=p;eval(l+"=p");}
function stm_bpx(l,r,a){var p=eval(r);stm_bp(l,(a.length?a.concat(p.args.slice(a.length)):p.args));}
function stm_ai(l,a){var m=st_cm,p=st_cp,v=p.typ&1,j=p.is.length,typ=stDtB([a[0]==6?2:a[0],0,m.rtl,a[0]==6?1:0]),i;if(a[0]==6)i=stItem([typ,p.ids+"sp"+j,"",(v?"100%":a[1]),(v?a[1]:"100%"),"",a[3],"",a[4],a[5],0,"","","","","","",0,0,0,"","",0,0,0,1,1,a[2],"","","","","",0,0,"","","","","","",0,0,0,"","",1,0,0]);else{var lw=v?p.lms:m.rtl?(a[18]+2*a[20]):(a[13]+2*a[15]),rw=v?p.rms:m.rtl?(a[13]+2*a[15]):(a[18]+2*a[20]);i=stItem([typ,p.ids+"i"+j,"",arguments[2]?arguments[2]:"100%",arguments[3]?arguments[3]:"100%",a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],m.rtl?a[16]:a[11],m.rtl?a[17]:a[12],m.rtl?a[18]:a[13],m.rtl?a[19]:a[14],m.rtl?a[20]:a[15],m.rtl?a[11]:a[16],m.rtl?a[12]:a[17],m.rtl?a[13]:a[18],m.rtl?a[14]:a[19],m.rtl?a[15]:a[20],a[21],a[22],a[24]?"transparent":a[23],a[26]?"transparent":a[25],a[27],a[28],a[29],a[30],a[31],a[32],a[33],a[34],a[35],a[36],a[37],a[38],a[39],a[40],p.pad,m.cur[0],m.cur[1],1,lw,rw]);if((!i.icoW||!i.icoH)&&lw&&v) {i.icoW=lw,i.icoH=-1,i.ico=["",""]};if((!i.arrW||!i.arrH)&&rw&&v) {i.arrW=rw,i.arrH=-1,i.arr=["",""]};i.isOv=0;}st_ci=p.is[j]=i;i.mid=m.id;i.pid=p.id;	i.id=j;i.parP=p;	if(a[0]!=6){	i.tid=0;	i.subP=0;i.lock=(m.cks&1)?!(m.cks&2):0;i.onmouseover="stiov";i.onmouseout="stiou";i.onclick="stick";i.ovst=153391689;i.oust=0;stLnks(i);}i.args=a;eval(l+"=i");}
function stm_aix(l,r,a){var i=eval(r),wd=arguments.length>3?arguments[3]:0,ht=arguments.length>4?arguments[4]:0;stm_ai(l,(a.length?a.concat(i.args.slice(a.length)):i.args),wd,ht)}
function stm_ep(){var m=st_cm,p=st_cp;st_ci=p.parI;if(st_ci) st_cp=st_ci.parP;else st_cp=0;	if(!p.is.length){var i=p.parI;if(m.rtl){i.ico=["",""];i.icoW=0;i.icoH=0;i.icoB=0;}else{i.arr=["",""];i.arrW=0;i.arrH=0;i.arrB=0;}	i.subP=0;m.ps.pop();}		}
function stm_sc(n,a){if(!STM_SCROLL)return;	var m=st_cm,e;for(var j=1;j<m.ps.length;j++){var p=m.ps[j];	if(p.typ&2) e=1;if((p.typ&1)==n){	p.scsp=100;p.typ|=2;p.sc[0]=stItem([2,p.ids+"sc0","","100%","100%","",a[10],a[11],a[12],a[13],a[14],"","","","","","",0,0,0,a[2],a[3],0,0,0,1,1,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],"","","","",0,0,0,"hand","",1,0,0]);p.sc[0].typ=p.sc[0].typ|16;p.sc[0].onmouseover="stsov";p.sc[0].onmouseout="stsou";p.sc[0].onmousedown="stsdn";p.sc[0].onmouseup="stsdu";p.sc[0].sid=0;p.sc[0].parP=p;p.sc[0].mid=p.mid;p.sc[0].pid=p.id;p.sc[1]=stItem([2,p.ids+"sc1","","100%","100%","",a[16],a[15],a[17],a[18],a[19],"","","","","","",0,0,0,a[2],a[3],0,0,0,1,1,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],"","","","",0,0,0,"hand","",1,0,0,0]);p.sc[1].typ=p.sc[1].typ|16;p.sc[1].onmouseover="stsov";p.sc[1].onmouseout="stsou";p.sc[1].onmousedown="stsdn";p.sc[1].onmouseup="stsdu";p.sc[1].sid=1;p.sc[1].pid=p.id;p.sc[1].mid=p.mid;p.sc[1].parP=p;p.scD=a[20]?a[21]:0;}}	if(!e)staddE(0,"stsSc",m);if(!(st_funs&64))document.write(stgJs(m.jsP+"stscroll.js",1)),st_funs|=64;}
function stm_cf(a){var m=st_cm;m.cfD=a[0];m.cfX=a[1];m.cfY=a[2];m.cfrm=1;m.tfrn=a[3];m.sfrn=a[4];m.cfsh=a[5];}
function stm_em(){var m=st_cm;st_cp=st_ci=0;if(!m.ps.length){st_ms.pop(),	st_cm=st_ms[st_ms.length-1];return;}for(var j=0;j<st_cm.ps.length;j++){var p=st_cm.ps[j];p.args=null;for(var k=0;k<st_cm.ps[j].is.length;k++)p.is[k].args=null;}stCreate();}
function stcklo(p){var m=st_ms[p.mid];for(var j=0;j<m.ps.length;j++){if(j) m.ps[j].lock=1;if(!(m.cks&2))for(var k=0;k<m.ps[j].is.length;k++)m.ps[j].is[k].lock=1;}m.ckd=0;}
function stItem(a){var i={typ:a[0],				ids:a[1],		nam:a[2],wid:a[3],hei:a[4],txt:a[0]&1?a[5]:stHTML(a[5]),	img:[stgPth(0,a[6]),stgPth(0,a[7])],imgW:a[8],imgH:a[9],imgB:a[10],	lnk:stabsL(stgPth(2,a[11])),tar:a[12]?a[12]:"_self",	stus:a[13],tip:stHTML(a[14],1),ico:[stgPth(0,a[15]),stgPth(0,a[16])],icoW:a[17],icoH:a[18],icoB:a[19],arr:[stgPth(0,a[20]),stgPth(0,a[21])],arrW:a[22],arrH:a[23],arrB:a[24],thal:a[25],tval:a[26],bgC:[a[27],a[28]],bgI:[stgPth(0,a[29]),stgPth(0,a[30])],bgR:[a[31],a[32]],bd:a[33],bdW:a[34],bdC:[a[35],a[36]],colr:[a[37],a[38]],fnt:[a[39],a[40]],dec:[a[41],a[42]],pad:a[43],cur:[a[44],a[45]],hal:a[46],	lw:a[47],rw:a[48],stat:0,disable:true };if(!i.bgI[0]&&i.bgI[1]) i.bgI[0]=st_cm.bnk;if(!i.bgI[1]&&i.bgI[0]) i.bgI[1]=st_cm.bnk;return i;}
function stnav(){var _n=navigator,_u=_n.userAgent,_a=_n.appName,_p=_n.platform,n,v,p;if(/(Opera)[ \/]([\d\.]+)/.test(_u)||/(Netscape)\d*\/([\d\.]+)/.test(_u)||/(MSIE) ([\d\.]+)/.test(_u)||/(Safari)\/([\d\.]+)/.test(_u)||/(Konqueror)\/([\d\.]+)/.test(_u)||/(Gecko)\/(\d+)/.test(_u)){n=RegExp.$1.toLowerCase();v=RegExp.$2;}else if(_a=="Netscape"&&_n.appVersion.charAt(0)=="4"){n="netscape4";v=_n.appVersion;}else{n="unknow";v=0;}if(n=="netscape")switch(_a){case "Microsoft Internet Explorer":n="msie";v=/(MSIE) ([\d\.]+)/.exec(_u)[2];				break;case "Netscape":n="gecko";v=/(Gecko)\/(\d+)/.exec(_u)[2];}v=parseFloat(v);if(/^(Win)/.test(_p)||/^(Mac)/.test(_p)||/^(SunOS)/.test(_p)||/^(Linux)/.test(_p)||/^(Unix)/.test(_p))p=RegExp.$1.toLowerCase();else p=_p;if(n=="msie"&&v>=4){if(v<5||p=="mac")STM_SCROLL=0;t=0;}else if(n=="opera"&&v>=7||n=="safari"&&v>=1){if(n!="opera"||v<9)STM_SCROLL=0;STM_FILTER=0;t=1;}else if(n=="konqueror"&&v>=3){STM_FILTER=0;STM_SLIP=0;STM_SCROLL=0;t=1;}else if(n=="gecko"&&v>=20020529){STM_FILTER=0;if(v<20040804)STM_SCROLL=0;t=1;}else t=4;return {os:p,nam:n,ver:v,typ:t}}
function stckpg(){if(!st_ck.length) return;for(var j=0;j<st_ck.length;j++){if(!(st_ck[j][2]%st_ck[j][1])){st_ck[j][2]=1;st_ck[j][0]();}else st_ck[j][2]++;}st_tid=setTimeout("stckpg()",25);}
function stisF(s){var re=/\w+\.\w+$/;return re.exec(s)}
function stgJs(s,f){return "<script type='text/javascript' language='javascript1.2' src='"+s+"'"+(f?" DEFER":"")+"></script>"}
function stCreate(){var m=st_cm,d=document;if(m.eslip)steslip();if(m.ieff)stflt();var f=(st_funs&2)||(st_funs&4);switch(st_nav.typ){case 0:if(!(st_funs&2)){d.write(stgJs(m.jsP+"stie.js"));st_funs|=2;}break;case 1:if(!(st_funs&4)){d.write(stgJs(m.jsP+"stdom.js"));st_funs|=4;}}if((st_funs&512)&&f)	stshow();else {d.write(stgJs(m.jsP+"stinit.js"));	st_funs|=512;}}
function stDtB(a){var b=0;for(var j=0;j<a.length;j++)if(a[j])	b+=a[j]*Math.pow(2,j);return b;}
function stgPth(f,s){if(!s) return s;switch(f){case 0:	s=stabs(s)?s:st_cm.imgP+s;stbuf(s);break;case 1:s=stabs(s)?s:st_cm.jsP+s;break;case 2:s=stabs(s)?s:st_cm.lnkP+s;if(!s.toLowerCase().indexOf("javascript:"))s+=";void(0)";break;case 3:s=stabs(s)?s:st_cm.imgP+s;break;}return s;}
function stLnks(i){var m=st_ms[i.mid];if(!i.lnk)	 return;for(var j=0;j<m.lnks.length;j++)if(m.lnks[j].url==i.lnk&&m.lnks[j].tar==i.tar){m.lnks[j].dat.push(i);break;}if(j==m.lnks.length) m.lnks.push({url:i.lnk,tar:i.tar,dat:[i]})}
function stHTML(s,f){if(!s) return "";var re;re=/&/g;s=s.replace(re,"&amp;");if(!f){	re=/ /g;s=s.replace(re,"&nbsp;");}re=/</g;s=s.replace(re,"&lt;");re=/>/g;s=s.replace(re,"&gt;");re=/\r\n/g;s=s.replace(re,"<br>");re=/\"/g;s=s.replace(re,"&quot;");return s;}
function stabs(s){var t=s.toLowerCase();return  t=="@"||!t||!t.indexOf("#")||!t.indexOf("?")||t.indexOf(":")==1&&t.charCodeAt()>="a"&&t.charCodeAt()<="z"||!t.indexOf("http:")||!t.indexOf("https:")||!t.indexOf("file:")||!t.indexOf("ftp:")||!t.indexOf("/")||!t.indexOf("javascript:")||!t.indexOf("mailto:")||!t.indexOf("about:")||!t.indexOf("gopher:")||!t.indexOf("news:")||!t.indexOf("telnet:")||!t.indexOf("wais:")||!t.indexOf("rtsp:")||!t.indexOf("mms:")||!t.indexOf("outlook:");}
function stbuf(s){if(s&&STM_BIMG){for(var j=0;j<st_imgs.length;j++)if(st_imgs[j].src==s) return s;var i=new Image();i.src=s;st_imgs.push({src:s,img:i});	}return s;}
function stEffect(s,h){var p=st_cp,n=s.substring(10,s.length-2);if(n=="slip"&&STM_SLIP){if(typeof p.efft=="undefined") p.efft=0;p.effn="slip";p.efft|=h;st_cm.eslip=1;}}
function stsetld(){	if(st_nav.typ==4) return;var m=st_cm,f1=f2=1;if(!window.onload||onload.toString()!=stload.toString()){if(typeof(window.onload)=="function") st_ld.push(onload);window.onload=stload;}if(m.hdT.length&&!(st_funs&16)){st_ld.push(sthdw);document.write(stgJs(m.jsP+"stwinels.js",1));st_funs|=16;}	if(m.lits&1&&!(st_funs&128)){st_ck.push([sthl,40,40]);st_ld.push(sthi);document.write(stgJs(m.jsP+"sthilight.js",1));st_funs|=128;}if(m.cks&1) staddE(6,"stcklo",m);if((isNaN(m.x)||isNaN(m.y))&&!(st_funs&8)){if((st_nav.os=="mac"&&!st_nav.typ)||!STM_SMSC)st_ck.push([stssc,20,1]);else st_ck.push([stssc,1,1]);st_funs|=8;}if(!(st_funs&1024)){st_ld.push(stckpg);st_funs|=1024;}}
function stgMe(n){for(var j=0;j<st_ms.length;j++)if(st_ms[j].nam==n) return st_ms[j];return false;}
function stload(){if(st_lded)return;for(var j=0;j<st_ld.length;j++)st_ld[j]();for(var j=0;j<st_ms.length;j++)if(st_ms[j].myload)	st_ms[j].myload();st_lded=1;}
function staddE(i,f,m){if(!m.usrE[i])m.usrE[i]=[];m.usrE[i].push(f);}
function stusrE(i,o,m){var r=1;if(m.usrE[i]){for(var j=0;j<m.usrE[i].length;j++)if(window[m.usrE[i][j]]&&!eval(m.usrE[i][j]+"(o)")) r=0; }return r;}
function sthdw(){for(var j=0;j<st_ms.length;j++){var m=st_ms[j];if(m.hdT.length){staddE(1,"sthdWels",m);staddE(3,"stshWels",m);}	}}
function stgtfrm(m){if(!m.cfrm)	return window;var a=m.tfrn.split("."),w;if(m.sfrn)	w="parent";else w="window";for(var j=0;j<a.length;++j){w+="."+a[j];if(typeof(eval(w))=="undefined")return window;}return eval(w);}
function stgsfrm(m){var s="",a=m.sfrn?("parent."+m.tfrn).split("."):m.tfrn.split("."),n=[],f=0;for(var j=0;j<a.length;j++){s+=a[j];if(a[j]!="parent"){if(a[j]=="window") continue;if(!f){if(n.length) n[n.length-1]="parent";f=1;}n.push("parent");}else n.push(eval(s).name);s+=".";}	s="";for(var j=n.length-2;j>=0;j--)s+=n[j]+".";if(m.sfrn) s+=m.sfrn+".";else s+="parent.";m.sfrp=s;return s;}
function sthl(){if(typeof(stisL)=="undefined") return;for(var k=0;k<st_ms.length;k++){	var m=st_ms[k];if(!(m.lits&1)||m.isOv) continue;var w=stgtfrm(m),ip=new Array(m.ps.length),ii=new Array(m.ps.length),f=0,i,t,is,sn=0,pp,ex,li=m.hili,mck=m.ckhd;for(var j=0;j<m.lnks.length;j++){is=m.lnks[j].dat;if(stisL(m.lnks[j].url,m.lnks[j].tar,0,w)){	for( var l=is.length-1;l>=0;l--){				i=is[l];	if(!i.ishl||mck){ex=i.pid?stckL(i,w):stckL(i);if(m.lits&0x01000000){	if(ex){i._anchor.href="#";i._anchor.target="_self";i._layer.style.cursor=!m.cur[0].indexOf("url(")&&!st_nav.typ&&st_nav.ver<6||m.cur[0]=="hand"&&st_nav.typ==1&&st_nav.nam!="opera"?"":m.cur[0];}		i.blnk=i.lnk;i.lnk="@";}		f=1;}else{do{if(typeof ii[i.pid]=="undefined")ii[i.pid]=[];ii[i.pid][i.id]=1;i=i.parP.parI;	}while(i&&(m.lits&0x04000000));continue;}pp=[];t=0;do{					if(m.lits&0x08000000)pp.push(i.parP);if(!t||m.lits&0x04000000){					if(ex&&!i.isOv){var los=i.lock;i.lock=0;stcIt(i,li);i.lock=los;}i.stat=i.oust=li;i.ishl=1;	if(typeof ii[i.pid]=="undefined")ii[i.pid]=[];ii[i.pid][i.id]=1;}t=1;i=i.parP.parI;	if(!i)break;ex=i.pid?stckL(i,w):stckL(i);}while(m.lits&0x04000000||m.lits&0x08000000);if(m.lits&0x10000000)sn=Math.max(pp.length-m.litl,0);for(var q=pp.length-1;q>=sn;q--){				clearTimeout(pp[q].tid);if(!pp[q].isSh){var los=pp[q].lock;pp[q].lock=0;stshP(pp[q]);pp[q].lock=los;}ip[pp[q].id]=1;}}}}if(f)for(var j=0;j<m.lnks.length;j++){is=m.lnks[j].dat;for(var l=0;l<is.length;l++){i=is[l];if(i.ishl&&(!ii[i.pid]||!ii[i.pid][i.id])) {							ex=i.pid?stckL(i,w):stckL(i);pp=[];if((m.lits&0x01000000)&&i.blnk){i.lnk=i.blnk;i.blnk="";if(ex){i._anchor.href=i.lnk;i._anchor.target=i.tar;i._layer.style.cursor=!m.cur[1].indexOf("url(")&&!st_nav.typ&&st_nav.ver<6||m.cur[1]=="hand"&&st_nav.typ==1&&st_nav.nam!="opera"?"":m.cur[1];}}t=0;do{if(ii[i.pid]&&ii[i.pid][i.id])break;if(!t||m.lits&0x04000000){					if(ex&&!i.isOv){var los=i.lock;i.lock=0;stcIt(i,0);i.lock=los;}i.stat=i.oust=0;i.ishl=0;}if((m.lits&0x08000000)&&!ip[i.pid]&&i.parP.isSh){var los=i.parP.lock;i.parP.lock=0;sthdP(i.parP);i.parP.lock=los;}t=1;if(!(i=i.parP.parI)) break;ex=i.pid?stckL(i,w):stckL(i);}while(m.lits&0x04000000||m.lits&0x08000000);}}}}}
function stflt(){	var m=st_cm;staddE(0,"stfltshB",m);staddE(1,"stfltshE",m);staddE(2,"stflthdB",m);staddE(3,"stflthdE",m);if(!(st_funs&256)){document.write(stgJs(m.jsP+"stfilter.js"));st_funs|=256;}}
function steslip(){var m=st_cm;staddE(0,"stslsh",m);staddE(2,"stslhd",m);if(!(st_funs&32)){document.write(stgJs(m.jsP+"stslip.js",1));st_funs|=32;}}
function stssc(){if(typeof(stmvto)=='undefined'||!st_lded) return;for(var j=0;j<st_ms.length;j++){var m=st_ms[j];if(!isNaN(m.x)&&!isNaN(m.y))	continue;var p=m.ps[0],rc=p._rc,xy=[eval(m.x),eval(m.y)];if(typeof(p.scxs)=='undefined')p.scxs=0;if(typeof(p.scys)=='undefined')p.scys=0;var dx=xy[0]-rc[0],dy=xy[1]-rc[1];if(dx||dy){	p.scxs=stgsp(p.scxs,Math.abs(dx));p.scys=stgsp(p.scys,Math.abs(dy));var x=dx>0?rc[0]+p.scxs:rc[0]-p.scxs,y=dy>0?rc[1]+p.scys:rc[1]-p.scys;stmvto([x,y],p)}}}
function stgsp(sp,d){var i=0,s=5;if(d<s) return d;return Math.floor(Math.sqrt(2*d*s));}
function sthi(){for(var j=0;j<st_ms.length;j++)if(st_ms[j].lits&0x08000000)staddE(6,"stshlp",st_ms[j]);}
function stgfd(s){var ts=s.toLowerCase();if(!ts.indexOf("//")||!ts.indexOf("file:/")||!ts.indexOf("http://")||!ts.indexOf("https://"))return s.substr(0,s.lastIndexOf("/")+1);else return "";}
function stabsL(s){if(!s) return s;var re,t;if(s.charAt(0)=="/"){re=/(file:\/{2,}[^\/]+\/|http:\/\/[^\/]+\/|https:\/\/[^\/]+\/)/;if(re.exec(st_path)) s=RegExp.$1+s.substr(1);}else if(!stabs(s))s=st_path.substr(0,st_path.lastIndexOf("/")+1)+s;else return s;while(s.indexOf("/./")>0)s=s.replace("/./","/");while((t=s.indexOf("/../"))>0){var p1,p2;p1=s.substr(0,t);p2=s.substr(t).replace("/../","");p1=p1.substr(0,p1.lastIndexOf("/")+1);s=p1+p2;}return s;}
function stStyle(){var s="<style>",t;for (t in stCSS )	s+=".stc"+t+"{"+stCSS[t]+"}\n";return s+="</style>";}
function stgCss(t,f,c){var s="";if(!f){if(stCSS[t]) s=" class='stc"+t+"'";if(c) s+=" style=\""+c+"\"";}else{if(!c&&stCSS[t])s=" style='"+stCSS[t]+"'";else if(stCSS[t]){s=" style=\"";var a=ststo(c),b=ststo(stCSS[t]);for(var i in b)	if(typeof a[i]=="undefined") a[i]=b[i];s+=stots(a);s+="\"";}}return s;}
function ststo(s){var o={},a,re=/\s*([\w\-_]+)\s*:\s*([:_\w#%\- .\"\',\(\)\-\/\\=\|]+)\s*(;|$)/,ra;a=s.split(";");	for(var i=0;i<a.length;i++){ra=re.exec(a[i]);if(ra)o[ra[1]]=ra[2];}return o;}
function stots(a){var s="";for(var i in a) s+=i+":"+a[i]+";";return s;}
function stgEnt(o){var s="",f="", m=st_ms[o.mid];if(o.frm)	f=m.sfrp?m.sfrp:stgsfrm(m);for(var j=0;j<stENTS.length;j++)if(o[stENTS[j]]) s+=stENTS[j]+"=\""+f+"stsEnt(event,this,"+j+",'st_ms["+o.mid+"]"+(typeof(o.pid)=="undefined"?".ps["+o.id+"]":((o.typ&17)/8==2?".ps["+o.pid+"].sc["+o.sid+"]":".ps["+o.pid+"].is["+o.id+"]"))+"')\" ";return s;}
function stgClk(i){var s="",f="", m=st_ms[i.mid];if(i.frm)	f=m.sfrp?m.sfrp:stgsfrm(m); s+="onclick=\"return "+f+"st_ms["+i.mid+"].ps["+i.pid+"].is["+i.id+"]"+".disable\" ";return s;}
function stgEff(f,i,s,h,st){if(!f.indexOf("stEffect")){if(!st)stEffect(f,h);return "";}if(f=="normal"||!STM_FILTER) return "";return st_nav.ver<5.5?(!st||st_nav.ver>=5)&&i<24&&i>=0?"revealTrans(Transition="+i+",Duration="+((110-s)/100)+")":"":f;}

