function PreviewContnent(txt,title) {
	txt = Str_Replace('\n','<br>',txt);
	popupwindow=dhtmlmodal.open('RouterWindow', 'inline', '<br><br><br>'+txt, title, 'width=430px,height=380px,center=1,resize=0,scrolling=1'); 		

}



function Str_Replace(txtsearch,txtreplace,txt) {

     var strReplaceAll = txt;

     var intIndexOfMatch = strReplaceAll.indexOf( txtsearch );

      

     // Loop over the string value replacing out each matching

     // substring.

     while (intIndexOfMatch != -1){

     // Relace out the current instance.

     txt = txt.replace( txtsearch, txtreplace )      

     // Get the index of any next matching substring.

     intIndexOfMatch = txt.indexOf( txtsearch );	 

     }

	 return txt;

}

function onKeyPressOnlyNumbers(e){

	var key = window.event ? e.keyCode : e.which;

	var keychar = String.fromCharCode(key);

	reg = /[ a-zA-Z!@#$%^&*()-+=_|?<>.,'";:\/\\\[\]{}~`]/;

	return !reg.test(keychar);

}



function isEmailAddr(email,Label) {

if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){

return true;

}

else

return false;

}







function isEmail(s){



var i = 1,Length = s.length,result;



if(s==""){



alert("Email Address should not be Empty");



return false;



}



while((i<Length) && (s.charAt(i) != '@')) i++;



if ((i == Length) || (s.charAt(i) != '@')){



alert("Invalid Email Address");



return false;



}



i+=2;



while((i<Length) && (s.charAt(i) != '.')) i++;



if ((i == Length) || (s.charAt(i) != '.')){



alert("Invalid Email Address");



return false;



}



if (i+1 >= Length){



alert("Invalid Email Address");



return false;



}



return true;



}



function IsValid(Val,Label)



{



	if(trim(Val)=="")



	{



		alert(Label+" Should Not be Empty");



		return false;



	}



	return true;



}







var trim = function(Val)



{



	return Val.replace(/^\s+|\s+$/g, ""); 	



}



	



function IsValidUserName(sText,Label)



{



   var ValidChars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-_";



   var IsValid=true;



   var Char;



   if(sText=="") {alert(Label+ " Should not be Empty");return false}



   for (i = 0; i < sText.length && IsValid == true; i++) 



   { 



      Char = sText.charAt(i); 



      if(ValidChars.indexOf(Char) == -1) 



      {



         IsValid = false;



      }



   }



   if(!IsValid)



   	alert("Invalid Characters found in "+Label);



   return IsValid;



}



function IsValidNumber(sText,Label)



{



   var ValidChars = "0123456789-_";



   var IsValid=true;



   var Char;



   if(sText=="") {alert(Label+ " Should not be Empty");return false}



   for (i = 0; i < sText.length && IsValid == true; i++) 



   { 



      Char = sText.charAt(i); 



      if(ValidChars.indexOf(Char) == -1) 



      {



         IsValid = false;



      }



   }



   if(!IsValid)



   	alert("Invalid Numbers found in "+Label);



   return IsValid;



}



function IsPhoneNum(sText,Label)



{







   var ValidChars = "+0123456789";



   var IsNumber=true;



   var Char; 



   for (i = 0; i < sText.length && IsNumber == true; i++) 



   { 



      Char = sText.charAt(i); 



      if(ValidChars.indexOf(Char) == -1) 



      {



         IsNumber = false;



      }



   }



   if(!IsNumber)



   	alert(Label+ " must be numeric");



   return IsNumber;



}







function IsPhoneNo(sText,Label)



{







   var ValidChars = "0123456789 ";



   var IsNumber=true;



   var Char;



   for (i = 0; i < sText.length && IsNumber == true; i++) 



   { 



      Char = sText.charAt(i); 



      if(ValidChars.indexOf(Char) == -1) 



      {



         IsNumber = false;



      }



   }



   if(!IsNumber)



   	alert(Label+ " must be numeric");



   return IsNumber;



}









/*Ragu Added New scripts on oct16

---------------------------------

*/





function formValidation(this_form)

{

	with (this_form)

	{

	

		if(isEmpty(data_email.value))

		{	setError(this_form, name, "Please enter your Name"); return false; }

		

		

		if(isEmpty(age.value))

		{	setError(this_form, age, "Please enter your Age"); return false; }

		else

			if (!isNumeric(age))

			{	setError(this_form, age, "Invalid Age"); return false; }

		

		

		if(isEmpty(email.value))

		{	setError(this_form, email, "Please enter your Email"); return false; }

		else

			if (!isValidEmail(email.value))

			{	setError(this_form, email, "Invalid Email"); return false; }

		

	

		if(isEquals(country.value, "Select a country"))

		{	setError(this_form, country, "Please Select a country"); return false; }





		if(isEmpty(message.value))

		{	setError(this_form, message, "Please enter your Message"); return false; }

			

	}

}





/*  -----------------------------------------------------------------  */





function setError(this_form, field, msg)

{

	with(this_form)

	{

		field.focus();

		alert(msg);

		return false;

	}

}





function isEmpty(val)

{

	if(val==null || val=="")

		return true;

	else 

		return false;

}





function isValidEmail(val)

{

	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;



	if(val.match(emailExp))

		return true;

	else

		return false;

}





function isAlpha(val)

{

	var alphaExp = /^[a-zA-Z]+$/;



	if(val.match(alphaExp))

		return true;

	else

		return false;

}





function isNumeric(val)

{

	var numericExpression = /^[0-9]+$/;



	if(val.match(numericExpression))

		return true;

	else		

		return false;

}





function isEquals(val1, val2)

{

	if(val1 == val2)

		return true;

	else

		return false;

}





function lengthRestriction(val, min, max)

{

	if(val.length >= min && val.length <= max)

		return true;

	else

		return false;

}





function valueRestriction(val, min, max)

{

	var checkvalue = parseInt(val);

	

	if(checkvalue >= min && checkvalue <= max)

		return true;

	else

		return false;

}















function SelectSubCat()

{

// ON selection of category this function will work



removeAllOptions(document.profile.sub_cat);

addOption(document.profile.sub_cat, "", "Select Sub Cat", "");







if(document.profile.data_maincat.value == 'Arts-and-Entertainment')

{

addOption(document.profile.sub_cat,"Animation", "Animation");

addOption(document.profile.sub_cat,"Astrology", "Astrology");

addOption(document.profile.sub_cat,"Casino-Gambling", "Humanities");

addOption(document.profile.sub_cat,"Humor", "Humor");

addOption(document.profile.sub_cat,"Movie-TV", "Movie-TV");

addOption(document.profile.sub_cat,"Music", "Music");

addOption(document.profile.sub_cat,"Performing-Arts", "Performing-Arts");

addOption(document.profile.sub_cat,"Philosophy", "Philosophy");

addOption(document.profile.sub_cat,"Poetry", "Poetry");

addOption(document.profile.sub_cat,"Tattoos", "Tattoos");

addOption(document.profile.sub_cat,"Visual-Graphic-Arts", "Visual-Graphic-Arts");

}



if(document.profile.data_maincat.value == 'Automotive')

{

addOption(document.profile.sub_cat,"ATV", "ATV");

addOption(document.profile.sub_cat,"Mobile Audio Video", "Mobile Audio Video");

addOption(document.profile.sub_cat,"MotorCycles", "MotorCycles");

addOption(document.profile.sub_cat,"RV", "RV");

addOption(document.profile.sub_cat,"Repairs", "Repairs");

addOption(document.profile.sub_cat,"Trucks", "Trucks");

}



if(document.profile.data_maincat.value == 'Book-Reviews')

{

addOption(document.profile.sub_cat,"Almanacs", "Almanacs");

addOption(document.profile.sub_cat,"Arts-Photography", "Arts-Photography");

addOption(document.profile.sub_cat,"Biographies-Memoirs", "Biographies-Memoirs");

addOption(document.profile.sub_cat,"Biology", "Biology");

addOption(document.profile.sub_cat,"Business", "Business");

addOption(document.profile.sub_cat,"Children-Books", "Children-Books");

addOption(document.profile.sub_cat,"Comics-Humor", "Comics-Humor");

addOption(document.profile.sub_cat,"Computers", "Computers");

addOption(document.profile.sub_cat,"Cookery-Cookbook", "Cookery-Cookbook");



addOption(document.profile.sub_cat,"Current-Affairs", "Current-Affairs");

addOption(document.profile.sub_cat,"Dance", "Dance");

addOption(document.profile.sub_cat,"Economics", "Economics");

addOption(document.profile.sub_cat,"Educational-Science", "Educational-Science");

addOption(document.profile.sub_cat,"Fiction", "Fiction");

addOption(document.profile.sub_cat,"Health-Mind-Body", "Health-Mind-Body");

addOption(document.profile.sub_cat,"History", "History");

addOption(document.profile.sub_cat,"Home-Garden", "Home-Garden");

addOption(document.profile.sub_cat,"Inspiration-Fiction", "Inspiration-Fiction");

addOption(document.profile.sub_cat,"Internet", "Internet");

}



if(document.profile.data_maincat.value == 'Business')

{

addOption(document.profile.sub_cat,"Accounting", "Accounting");

addOption(document.profile.sub_cat,"Accounting-Payroll", "Accounting-Payroll");

addOption(document.profile.sub_cat,"Advertising", "Advertising");

addOption(document.profile.sub_cat,"Branding", "Branding");

addOption(document.profile.sub_cat,"Career-Advice", "Career-Advice");

addOption(document.profile.sub_cat,"Career-Employeement", "Career-Employeement");

addOption(document.profile.sub_cat,"Consulting", "Consulting");

addOption(document.profile.sub_cat,"Continuity-Disaster-Recovery", "Continuity-Disaster-Recovery");

addOption(document.profile.sub_cat,"Customer Service", "Customer Service");



addOption(document.profile.sub_cat,"Entrepreneurialism", "Entrepreneurialism");

addOption(document.profile.sub_cat,"Ethics", "Ethics");

addOption(document.profile.sub_cat,"Franchising", "Franchising");

addOption(document.profile.sub_cat,"Fundraising", "Fundraising");

addOption(document.profile.sub_cat,"Human-Resources", "Human-Resources");



addOption(document.profile.sub_cat,"Industrial-Mechanical", "Industrial-Mechanical");

addOption(document.profile.sub_cat,"International-Business", "International-Business");

addOption(document.profile.sub_cat,"Job-Search-Techniques", "Job-Search-Techniques");

addOption(document.profile.sub_cat,"Management", "Management");

addOption(document.profile.sub_cat,"Marketing", "Marketing");





addOption(document.profile.sub_cat,"Marketing-Direct", "Marketing-Direct");

addOption(document.profile.sub_cat,"Negotation", "Negotation");

addOption(document.profile.sub_cat,"Networking", "Networking");

addOption(document.profile.sub_cat,"Non-Profit", "Non-Profit");

addOption(document.profile.sub_cat,"Outsourcing", "Outsourcing");

addOption(document.profile.sub_cat,"PR", "PR");

addOption(document.profile.sub_cat,"Presentation", "Presentation");

addOption(document.profile.sub_cat,"Productivity", "Productivity");

addOption(document.profile.sub_cat,"Resumes-Cover-Letters", "Resumes-Cover-Letters");



addOption(document.profile.sub_cat,"Retail", "Retail");

addOption(document.profile.sub_cat,"Sales", "Sales");

addOption(document.profile.sub_cat,"Sales-Management", "Sales-Management");

addOption(document.profile.sub_cat,"Sales-Teleselling", "Sales-Teleselling");

addOption(document.profile.sub_cat,"Sales-Training", "Sales-Training");



addOption(document.profile.sub_cat,"Security", "Security");

addOption(document.profile.sub_cat,"Small-Business", "Small-Business");

addOption(document.profile.sub_cat,"Solo-Professional", "Solo-Professional");

addOption(document.profile.sub_cat,"Strategic-Planning", "Strategic-Planning");

addOption(document.profile.sub_cat,"Team-Building", "Team-Building");



addOption(document.profile.sub_cat,"Top7-or-10-Tips", "Top7-or-10-Tips");

addOption(document.profile.sub_cat,"Venture-Capital", "Venture-Capital");

addOption(document.profile.sub_cat,"Workplace-Communication", "Workplace-Communication");

addOption(document.profile.sub_cat,"Workplace-Safety", "Workplace-Safety");

}





if(document.profile.data_maincat.value == 'Cancer')

{

addOption(document.profile.sub_cat,"Breast-Cancer", "Breast-Cancer");

addOption(document.profile.sub_cat,"Colon-Rectal-Cancer", "Colon-Rectal-Cancer");

addOption(document.profile.sub_cat,"Leukemia-Lymphoma-Cancer", "Leukemia-Lymphoma-Cancer");

addOption(document.profile.sub_cat,"Lung-Mesothelioma-Asbestos", "Lung-Mesothelioma-Asbestos");

addOption(document.profile.sub_cat,"Ovarian-Cervical-Uterine-Cancer", "Ovarian-Cervical-Uterine-Cancer");

addOption(document.profile.sub_cat,"Prostate-Cancer", "Prostate-Cancer");

addOption(document.profile.sub_cat,"Skin-Cancer", "Skin-Cancer");

addOption(document.profile.sub_cat,"Philosophy", "Philosophy");

}



if(document.profile.data_maincat.value == 'Communications')

{

addOption(document.profile.sub_cat,"Brodband-Internet", "Brodband-Internet");

addOption(document.profile.sub_cat,"Fax", "Fax");

addOption(document.profile.sub_cat,"GPS", "GPS");

addOption(document.profile.sub_cat,"Mobile-Cell-Phone", "Mobile-Cell-Phone");

addOption(document.profile.sub_cat,"Mobile-Cell-Phone-Accessories", "Mobile-Cell-Phone-Accessories");

addOption(document.profile.sub_cat,"Mobile-Cell-Phone-Reviews", "Mobile-Cell-Phone-Reviews");

addOption(document.profile.sub_cat,"Mobile-Cell-Phone-SMS", "Mobile-Cell-Phone-SMS");

addOption(document.profile.sub_cat,"Radio", "Radio");

addOption(document.profile.sub_cat,"Satellite-Radio", "Satellite-Radio");



addOption(document.profile.sub_cat,"Satellite-TV", "Satellite-TV");

addOption(document.profile.sub_cat,"Telephone-Systems", "Telephone-Systems");

addOption(document.profile.sub_cat,"VIOP", "VIOP");

addOption(document.profile.sub_cat,"Video-Conferencing", "Video-Conferencing");

}

if(document.profile.data_maincat.value == 'Computers-and-Technology')

{

addOption(document.profile.sub_cat,"Certification-Tests", "Certification-Tests");

addOption(document.profile.sub_cat,"Computer-Forensics", "Computer-Forensics");

addOption(document.profile.sub_cat,"Data-Recovery", "Data-Recovery");

addOption(document.profile.sub_cat,"Hardware", "Hardware");

addOption(document.profile.sub_cat,"Mobile-Computing", "Mobile-Computing");

addOption(document.profile.sub_cat,"Personal-Tech", "Personal-Tech");

addOption(document.profile.sub_cat,"Software", "Software");

}

if(document.profile.data_maincat.value == 'Finance')

{

addOption(document.profile.sub_cat,"Auto-Loans", "Auto-Loans");

addOption(document.profile.sub_cat,"Bankruptcy", "Bankruptcy");

addOption(document.profile.sub_cat,"Bankruptcy-Lawyers", "Bankruptcy-Lawyers");

addOption(document.profile.sub_cat,"Bankruptcy-Medical", "Bankruptcy-Medical");

addOption(document.profile.sub_cat,"Bankruptcy-Personal", "Bankruptcy-Personal");

addOption(document.profile.sub_cat,"Bankruptcy-Tips-Advice", "Bankruptcy-Tips-Advice");

addOption(document.profile.sub_cat,"Commercial-Loans", "Commercial-Loans");

addOption(document.profile.sub_cat,"Credit", "Credit");

addOption(document.profile.sub_cat,"Credit-Counseling", "Credit-Counseling");

addOption(document.profile.sub_cat,"Credit-Tips", "Credit-Tips");

addOption(document.profile.sub_cat,"Currency-Trading", "Currency-Trading");

addOption(document.profile.sub_cat,"Debt-Consolidation", "Debt-Consolidation");

addOption(document.profile.sub_cat,"Debt-Management", "Debt-Management");

addOption(document.profile.sub_cat,"Debt-Relief", "Debt-Relief");

addOption(document.profile.sub_cat,"Estate-Plan-Trusts", "Estate-Plan-Trusts");

addOption(document.profile.sub_cat,"Home-Equity-Loans", "Home-Equity-Loans");

addOption(document.profile.sub_cat,"Leases-Leasing", "Leases-Leasing");

addOption(document.profile.sub_cat,"Loans", "Loans");

addOption(document.profile.sub_cat,"PayDay-Loans", "PayDay-Loans");

addOption(document.profile.sub_cat,"Personal-Finance", "Personal-Finance");

addOption(document.profile.sub_cat,"Personal-Loans", "Personal-Loans");

addOption(document.profile.sub_cat,"Structured-Settlements","Structured-Settlements");

addOption(document.profile.sub_cat,"Student-Loans","Student-Loans");

addOption(document.profile.sub_cat,"Taxes","Taxes");

addOption(document.profile.sub_cat,"Taxes-Income","Taxes-Income");

addOption(document.profile.sub_cat,"Taxes-Property","Taxes-Property");

addOption(document.profile.sub_cat,"Taxes-Relief","Taxes-Relief");

addOption(document.profile.sub_cat,"Taxes-Tools","Taxes-Tools");

addOption(document.profile.sub_cat,"Unsecured-Loans","Unsecured-Loans");

addOption(document.profile.sub_cat,"VA-Loans","VA-Loans");

addOption(document.profile.sub_cat,"Wealth-Building","Wealth-Building");

}

if(document.profile.data_maincat.value == 'Food-and-Drink')

{

addOption(document.profile.sub_cat,"Chocolate","Chocolate");

addOption(document.profile.sub_cat,"Coffee","Coffee");

addOption(document.profile.sub_cat,"Cooking-Tips","Cooking-Tips");

addOption(document.profile.sub_cat,"Crockpot-Recipes","Crockpot-Recipes");

addOption(document.profile.sub_cat,"Desserts","Desserts");

addOption(document.profile.sub_cat,"Low-Calorie","Low-Calorie");

addOption(document.profile.sub_cat,"Main-Course","Main-Course");

addOption(document.profile.sub_cat,"Pasta-Dishes","Pasta-Dishes");

addOption(document.profile.sub_cat,"Recipes","Recipes");

addOption(document.profile.sub_cat,"Restaurant-Reviews","Restaurant-Reviews");

addOption(document.profile.sub_cat,"Salads","Salads");

addOption(document.profile.sub_cat,"Soups","Soups");

addOption(document.profile.sub_cat,"Tea","Tea");

addOption(document.profile.sub_cat,"Wine-Spirits","Wine-Spirits");

}

if(document.profile.data_maincat.value == 'Gaming')

{

addOption(document.profile.sub_cat,"Communities","Communities");

addOption(document.profile.sub_cat,"Computer-Games","Computer-Games");

addOption(document.profile.sub_cat,"Console-Games","Console-Games");

addOption(document.profile.sub_cat,"Console-Systems","Console-Systems");

addOption(document.profile.sub_cat,"Online-Gaming","Online-Gaming");

addOption(document.profile.sub_cat,"Video-Game-Reviews","Video-Game-Reviews");

}

if(document.profile.data_maincat.value == 'Health-and-Fitness')

{

  addOption(document.profile.sub_cat,"Acne","Acne");

  addOption(document.profile.sub_cat,"Aerobics-Cardio","Aerobics-Cardio");

  addOption(document.profile.sub_cat,"Allergies","Allergies");

  addOption(document.profile.sub_cat,"Alternative","Alternative");

  addOption(document.profile.sub_cat,"Anti-Aging","Anti-Aging");

  addOption(document.profile.sub_cat,"Anxiety","Anxiety");

  addOption(document.profile.sub_cat,"Arthritis","Arthritis");

  addOption(document.profile.sub_cat,"Asthma","Asthma");

  addOption(document.profile.sub_cat,"Autism","Autism");

  addOption(document.profile.sub_cat,"Back-Pain","Back-Pain");

  addOption(document.profile.sub_cat,"Beauty","Beauty");

  addOption(document.profile.sub_cat,"Build-Muscle","Build-Muscle");

  addOption(document.profile.sub_cat,"Childhood-Obesity-Prevention","Childhood-Obesity-Prevention");

  addOption(document.profile.sub_cat,"Contraceptives-Birth-Control","Contraceptives-Birth-Control");

  addOption(document.profile.sub_cat,"Critical-Care","Critical-Care");

  addOption(document.profile.sub_cat,"Dental-Care","Dental-Care");

  addOption(document.profile.sub_cat,"Depression","Depression");

  addOption(document.profile.sub_cat,"Detoxification","Detoxification");

  addOption(document.profile.sub_cat,"Developmental-Disabilities","Developmental-Disabilities");

  addOption(document.profile.sub_cat,"Diabetes","Diabetes");

  addOption(document.profile.sub_cat,"Disability","Disability");

  addOption(document.profile.sub_cat,"Diseases","Diseases");

  addOption(document.profile.sub_cat,"Diseases-Multiple-Sclerosis","Diseases-Multiple-Sclerosis");

  addOption(document.profile.sub_cat,"Diseases-STDs","Diseases-STDs");

  addOption(document.profile.sub_cat,"Drug-Abuse","Drug-Abuse");

  addOption(document.profile.sub_cat,"Ears-Hearing","Ears-Hearing");

  addOption(document.profile.sub_cat,"Eating-Disorders","Eating-Disorders");

  addOption(document.profile.sub_cat,"Emotional-Freedom-Technique","Emotional-Freedom-Technique");

  addOption(document.profile.sub_cat,"Environmental-Issues","Environmental-Issues");

  addOption(document.profile.sub_cat,"Ergonomics","Ergonomics");

  addOption(document.profile.sub_cat,"Exercise","Exercise");

  addOption(document.profile.sub_cat,"Eyes-Vision","Eyes-Vision");

  addOption(document.profile.sub_cat,"Fitness-Equipment","Fitness-Equipment");

  addOption(document.profile.sub_cat,"Hair-Loss","Hair-Loss");

  addOption(document.profile.sub_cat,"Hand-Wrist-Pain","Hand-Wrist-Pain");

  addOption(document.profile.sub_cat,"Headaches-Migraines","Headaches-Migraines");

  addOption(document.profile.sub_cat,"Healing-Arts","Healing-Arts");

  addOption(document.profile.sub_cat,"Healthcare-Systems","Healthcare-Systems");

  addOption(document.profile.sub_cat,"Heart-Disease","Heart-Disease");

  addOption(document.profile.sub_cat,"Home-Health-Care","Home-Health-Care");

  addOption(document.profile.sub_cat,"Hypertension","Hypertension");

  addOption(document.profile.sub_cat,"Massage","Massage");

addOption(document.profile.sub_cat,"Medicine","Medicine");

addOption(document.profile.sub_cat,"Meditation","Meditation");

addOption(document.profile.sub_cat,"Mens-Issues","Mens-Issues");

addOption(document.profile.sub_cat,"Mental-Health","Mental-Health");

addOption(document.profile.sub_cat,"Mind-Body-Spirit","Mind-Body-Spirit");

addOption(document.profile.sub_cat,"Mood-Disorders","Mood-Disorders");

addOption(document.profile.sub_cat,"Nutrition","Nutrition");

addOption(document.profile.sub_cat,"Obesity","Obesity");

addOption(document.profile.sub_cat,"Pain-Management","Pain-Management");

addOption(document.profile.sub_cat,"Physical-Therapy","Physical-Therapy");

addOption(document.profile.sub_cat,"Popular-Diets","Popular-Diets");

addOption(document.profile.sub_cat,"Quit-Smoking","Quit-Smoking");

addOption(document.profile.sub_cat,"Self-Hypnosis","Self-Hypnosis");

addOption(document.profile.sub_cat,"Skin-Care","Skin-Care");

addOption(document.profile.sub_cat,"Sleep-Snoring","Sleep-Snoring");

addOption(document.profile.sub_cat,"Speech-Pathology","Speech-Pathology");

addOption(document.profile.sub_cat,"Supplements","Supplements");

addOption(document.profile.sub_cat,"Thyroid","Thyroid");

addOption(document.profile.sub_cat,"Weight-Loss","Weight-Loss");

addOption(document.profile.sub_cat,"Womens-Issues","Womens-Issues");

addOption(document.profile.sub_cat,"Yoga","Yoga");

}

if(document.profile.data_maincat.value == 'Home-and-Family')

{

 addOption(document.profile.sub_cat,"Babies-Toddler","Babies-Toddler");

addOption(document.profile.sub_cat,"Baby-Boomer","Baby-Boomer");

addOption(document.profile.sub_cat,"Crafts-Hobbies","Crafts-Hobbies");

addOption(document.profile.sub_cat,"Crafts-Supplies","Crafts-Supplies");

addOption(document.profile.sub_cat,"Death-Dying","Death-Dying");

addOption(document.profile.sub_cat,"Elder-Care","Elder-Care");

addOption(document.profile.sub_cat,"Entertaining","Entertaining");

addOption(document.profile.sub_cat,"Fatherhood","Fatherhood");

addOption(document.profile.sub_cat,"Gardening","Gardening");

addOption(document.profile.sub_cat,"Grandparenting","Grandparenting");

addOption(document.profile.sub_cat,"Holidays","Holidays");

addOption(document.profile.sub_cat,"Motherhood","Motherhood");

addOption(document.profile.sub_cat,"Parenting","Parenting");

addOption(document.profile.sub_cat,"Parties","Parties");

addOption(document.profile.sub_cat,"Pregnancy","Pregnancy");

addOption(document.profile.sub_cat,"Retirement","Retirement");

addOption(document.profile.sub_cat,"Scrapbooking","Scrapbooking");

}

if(document.profile.data_maincat.value == 'Home-Based-Business')

{

  addOption(document.profile.sub_cat,"Network-Marketing","Network-Marketing");
}

if(document.profile.data_maincat.value == 'Home-Improvement')

{

  addOption(document.profile.sub_cat,"Appliances","Appliances");

addOption(document.profile.sub_cat,"Audio-Video","Audio-Video");

addOption(document.profile.sub_cat,"Bath-and-Shower","Bath-and-Shower");

addOption(document.profile.sub_cat,"Cabinets","Cabinets");

addOption(document.profile.sub_cat,"Cleaning-Tips-and-Tools","Cleaning-Tips-and-Tools");

addOption(document.profile.sub_cat,"Concrete","Concrete");

addOption(document.profile.sub_cat,"DIY","DIY");

addOption(document.profile.sub_cat,"Doors","Doors");

addOption(document.profile.sub_cat,"Electrical","Electrical");

addOption(document.profile.sub_cat,"Energy-Efficiency","Energy-Efficiency");

addOption(document.profile.sub_cat,"Feng-Shui","Feng-Shui");

addOption(document.profile.sub_cat,"Flooring","Flooring");

addOption(document.profile.sub_cat,"Foundation","Foundation");

addOption(document.profile.sub_cat,"Furniture","Furniture");

addOption(document.profile.sub_cat,"Heating-and-Air-Conditioning","Heating-and-Air-Conditioning");

addOption(document.profile.sub_cat,"House-Plans","House-Plans");

addOption(document.profile.sub_cat,"Interior-Design-and-Decorating","Interior-Design-and-Decorating");

addOption(document.profile.sub_cat,"Kitchen-Improvements","Kitchen-Improvements");

addOption(document.profile.sub_cat,"Landscaping-Outdoor-Decorating","Landscaping-Outdoor-Decorating");

addOption(document.profile.sub_cat,"Lighting","Lighting");

addOption(document.profile.sub_cat,"New-Construction","New-Construction");

addOption(document.profile.sub_cat,"Painting","Painting");

addOption(document.profile.sub_cat,"Patio-Deck","Patio-Deck");

addOption(document.profile.sub_cat,"Pest-Control","Pest-Control");

addOption(document.profile.sub_cat,"Plumbing","Plumbing");

addOption(document.profile.sub_cat,"Remodeling","Remodeling");

addOption(document.profile.sub_cat,"Roofing","Roofing");

addOption(document.profile.sub_cat,"Security","Security");

addOption(document.profile.sub_cat,"Stone-Brick","Stone-Brick");

addOption(document.profile.sub_cat,"Storage-Garage","Storage-Garage");

addOption(document.profile.sub_cat,"Swimming-Pools-Spas","Swimming-Pools-Spas");

addOption(document.profile.sub_cat,"Tools-and-Equipment","Tools-and-Equipment");

addOption(document.profile.sub_cat,"Windows","Windows");

addOption(document.profile.sub_cat,"Yard-Equipment","Yard-Equipment");

}

if(document.profile.data_maincat.value == 'Insurance')

{

addOption(document.profile.sub_cat,"Agents-Marketers","Agents-Marketers");

addOption(document.profile.sub_cat,"Car-Auto","Car-Auto");

addOption(document.profile.sub_cat,"Commercial","Commercial");

addOption(document.profile.sub_cat,"Dental","Dental");

addOption(document.profile.sub_cat,"Disability","Disability");

addOption(document.profile.sub_cat,"Flood","Flood");

addOption(document.profile.sub_cat,"Health","Health");

addOption(document.profile.sub_cat,"Home-Owners-Renters","Home-Owners-Renters");

addOption(document.profile.sub_cat,"Life-Annuities","Life-Annuities");

addOption(document.profile.sub_cat,"Long-Term-Care","Long-Term-Care");

addOption(document.profile.sub_cat,"Medical-Billing","Medical-Billing");

addOption(document.profile.sub_cat,"Personal-Property","Personal-Property");

addOption(document.profile.sub_cat,"Pet","Pet");

addOption(document.profile.sub_cat,"RV-Motorcycle","RV-Motorcycle");

addOption(document.profile.sub_cat,"Supplemental","Supplemental");

addOption(document.profile.sub_cat,"Travel","Travel");

addOption(document.profile.sub_cat,"Umbrella","Umbrella");

addOption(document.profile.sub_cat,"Vision","Vision");

addOption(document.profile.sub_cat,"Watercraft","Watercraft");

addOption(document.profile.sub_cat,"Workers-Compensation","Workers-Compensation");

}

if(document.profile.data_maincat.value == 'Internet-and-Businesses-Online')

{

 addOption(document.profile.sub_cat,"Affiliate-Revenue","Affiliate-Revenue");

addOption(document.profile.sub_cat,"Auctions","Auctions");

addOption(document.profile.sub_cat,"Audio-Streaming","Audio-Streaming");

addOption(document.profile.sub_cat,"Autoresponders","Autoresponders");

addOption(document.profile.sub_cat,"Banner-Advertising","Banner-Advertising");

addOption(document.profile.sub_cat,"Blogging","Blogging");

addOption(document.profile.sub_cat,"CMS","CMS");

addOption(document.profile.sub_cat,"Domain-Names","Domain-Names");

addOption(document.profile.sub_cat,"E-Books","E-Books");

addOption(document.profile.sub_cat,"Ecommerce","Ecommerce");

addOption(document.profile.sub_cat,"Email-Marketing","Email-Marketing");

addOption(document.profile.sub_cat,"Ezine-Publishing","Ezine-Publishing");

addOption(document.profile.sub_cat,"Forums","Forums");

addOption(document.profile.sub_cat,"Internet-Marketing","Internet-Marketing");

addOption(document.profile.sub_cat,"Link-Popularity","Link-Popularity");

addOption(document.profile.sub_cat,"List-Building","List-Building");

addOption(document.profile.sub_cat,"PPC-Advertising","PPC-Advertising");

addOption(document.profile.sub_cat,"PPC-Publishing","PPC-Publishing");

addOption(document.profile.sub_cat,"Paid-Surveys","Paid-Surveys");

addOption(document.profile.sub_cat,"Podcasting","Podcasting");

addOption(document.profile.sub_cat,"Product-Creation","Product-Creation");

addOption(document.profile.sub_cat,"Product-Launching","Product-Launching");

addOption(document.profile.sub_cat,"RSS","RSS");

addOption(document.profile.sub_cat,"SEO","SEO");

addOption(document.profile.sub_cat,"Search-Engine-Marketing","Search-Engine-Marketing");

addOption(document.profile.sub_cat,"Security","Security");

addOption(document.profile.sub_cat,"Site-Promotion","Site-Promotion");

addOption(document.profile.sub_cat,"Social-Bookmarking","Social-Bookmarking");

addOption(document.profile.sub_cat,"Social-Media","Social-Media");

addOption(document.profile.sub_cat,"Social-Networking","Social-Networking");

addOption(document.profile.sub_cat,"Spam-Blocker","Spam-Blocker");

addOption(document.profile.sub_cat,"Traffic-Building","Traffic-Building");

addOption(document.profile.sub_cat,"Video-Marketing","Video-Marketing");

addOption(document.profile.sub_cat,"Video-Streaming","Video-Streaming");

addOption(document.profile.sub_cat,"Web-Design","Web-Design");

addOption(document.profile.sub_cat,"Web-Development","Web-Development");

addOption(document.profile.sub_cat,"Web-Hosting","Web-Hosting");

}

if(document.profile.data_maincat.value == 'Investing')

{

  addOption(document.profile.sub_cat,"Day-Trading","Day-Trading");

addOption(document.profile.sub_cat,"Futures-and-Commodities","Futures-and-Commodities");

addOption(document.profile.sub_cat,"IRA-401k","IRA-401k");

addOption(document.profile.sub_cat,"Mutual-Funds","Mutual-Funds");

addOption(document.profile.sub_cat,"Retirement-Planning","Retirement-Planning");

addOption(document.profile.sub_cat,"Stocks","Stocks");

}

if(document.profile.data_maincat.value == 'Kids-and-Teens')

{

  addOption(document.profile.sub_cat,"None","None");

}

if(document.profile.data_maincat.value == 'Legal')

{

addOption(document.profile.sub_cat,"Copyright","Copyright");

addOption(document.profile.sub_cat,"Corporations-LLC","Corporations-LLC");

addOption(document.profile.sub_cat,"Criminal-Law","Criminal-Law");

addOption(document.profile.sub_cat,"Cyber-Law","Cyber-Law");

addOption(document.profile.sub_cat,"Elder-Law","Elder-Law");

addOption(document.profile.sub_cat,"Employment-Law","Employment-Law");

addOption(document.profile.sub_cat,"Identity-Theft","Identity-Theft");

addOption(document.profile.sub_cat,"Immigration","Immigration");

addOption(document.profile.sub_cat,"Intellectual-Property","Intellectual-Property");

addOption(document.profile.sub_cat,"Labor-Law","Labor-Law");

addOption(document.profile.sub_cat,"Living-Will","Living-Will");

addOption(document.profile.sub_cat,"Medical-Malpractice","Medical-Malpractice");

addOption(document.profile.sub_cat,"National-State-Local","National-State-Local");

addOption(document.profile.sub_cat,"Patents","Patents");

addOption(document.profile.sub_cat,"Personal-Injury","Personal-Injury");

addOption(document.profile.sub_cat,"Real-Estate-Law","Real-Estate-Law");

addOption(document.profile.sub_cat,"Regulatory-Compliance","Regulatory-Compliance");

addOption(document.profile.sub_cat,"Trademarks","Trademarks");

}

if(document.profile.data_maincat.value == 'News-and-Society')

{

addOption(document.profile.sub_cat,"Crime","Crime");

addOption(document.profile.sub_cat,"Economics","Economics");

addOption(document.profile.sub_cat,"Energy","Energy");

addOption(document.profile.sub_cat,"Environmental","Environmental");

addOption(document.profile.sub_cat,"International","International");

addOption(document.profile.sub_cat,"Military","Military");

addOption(document.profile.sub_cat,"Politics","Politics");

addOption(document.profile.sub_cat,"Pure-Opinion","Pure-Opinion");

addOption(document.profile.sub_cat,"Religion","Religion");

addOption(document.profile.sub_cat,"Weather","Weather");

}

if(document.profile.data_maincat.value == 'Pets')

{

addOption(document.profile.sub_cat,"Birds","Birds");

addOption(document.profile.sub_cat,"Cats","Cats");

addOption(document.profile.sub_cat,"Dogs","Dogs");

addOption(document.profile.sub_cat,"Exotic","Exotic");

addOption(document.profile.sub_cat,"Farm-Ranch","Farm-Ranch");

addOption(document.profile.sub_cat,"Fish","Fish");

addOption(document.profile.sub_cat,"Horses","Horses");

addOption(document.profile.sub_cat,"Reptiles-Amphibians","Reptiles-Amphibians");

}

if(document.profile.data_maincat.value == 'Real-Estate')

{

 addOption(document.profile.sub_cat,"Building-a-Home","Building-a-Home");

addOption(document.profile.sub_cat,"Buying","Buying");

addOption(document.profile.sub_cat,"Commercial-Construction","Commercial-Construction");

addOption(document.profile.sub_cat,"Commercial-Property","Commercial-Property");

addOption(document.profile.sub_cat,"Condominiums","Condominiums");

addOption(document.profile.sub_cat,"FSBO","FSBO");

addOption(document.profile.sub_cat,"Foreclosures","Foreclosures");

addOption(document.profile.sub_cat,"Green-Real-Estate","Green-Real-Estate");

addOption(document.profile.sub_cat,"Home-Staging","Home-Staging");

addOption(document.profile.sub_cat,"Homes","Homes");

addOption(document.profile.sub_cat,"Investing","Investing");

addOption(document.profile.sub_cat,"Land","Land");

addOption(document.profile.sub_cat,"Leasing-Renting","Leasing-Renting");

addOption(document.profile.sub_cat,"Marketing","Marketing");

addOption(document.profile.sub_cat,"Mortgage-Refinance","Mortgage-Refinance");

addOption(document.profile.sub_cat,"Moving-Relocating","Moving-Relocating");

addOption(document.profile.sub_cat,"Property-Management","Property-Management");

addOption(document.profile.sub_cat,"Selling","Selling");



}

if(document.profile.data_maincat.value == 'Recreation-and-Sports')

{

 addOption(document.profile.sub_cat,"Archery","Archery");

addOption(document.profile.sub_cat,"Auto-Racing","Auto-Racing");

addOption(document.profile.sub_cat,"Baseball","Baseball");

addOption(document.profile.sub_cat,"Basketball","Basketball");

addOption(document.profile.sub_cat,"Billiards","Billiards");

addOption(document.profile.sub_cat,"Boating","Boating");

addOption(document.profile.sub_cat,"Bodybuilding","Bodybuilding");

addOption(document.profile.sub_cat,"Bowling","Bowling");

addOption(document.profile.sub_cat,"Boxing","Boxing");

addOption(document.profile.sub_cat,"Cheerleading","Cheerleading");

addOption(document.profile.sub_cat,"Climbing","Climbing");

addOption(document.profile.sub_cat,"Cricket","Cricket");

addOption(document.profile.sub_cat,"Cycling","Cycling");

addOption(document.profile.sub_cat,"Dancing","Dancing");

addOption(document.profile.sub_cat,"Equestrian","Equestrian");

addOption(document.profile.sub_cat,"Extreme","Extreme");

addOption(document.profile.sub_cat,"Fantasy-Sports","Fantasy-Sports");

addOption(document.profile.sub_cat,"Figure-Skating","Figure-Skating");

addOption(document.profile.sub_cat,"Fish-Ponds","Fish-Ponds");

addOption(document.profile.sub_cat,"Fishing","Fishing");

addOption(document.profile.sub_cat,"Football","Football");

addOption(document.profile.sub_cat,"Golf","Golf");

addOption(document.profile.sub_cat,"Gymnastics","Gymnastics");

addOption(document.profile.sub_cat,"Hockey","Hockey");

addOption(document.profile.sub_cat,"Horse-Racing","Horse-Racing");

addOption(document.profile.sub_cat,"Hunting","Hunting");

addOption(document.profile.sub_cat,"Martial-Arts","Martial-Arts");

addOption(document.profile.sub_cat,"Mountain-Biking","Mountain-Biking");

addOption(document.profile.sub_cat,"Olympics","Olympics");

addOption(document.profile.sub_cat,"Racquetball","Racquetball");

addOption(document.profile.sub_cat,"Rodeo","Rodeo");

addOption(document.profile.sub_cat,"Rugby","Rugby");

addOption(document.profile.sub_cat,"Running","Running");

addOption(document.profile.sub_cat,"Scuba-Diving","Scuba-Diving");

addOption(document.profile.sub_cat,"Skateboarding","Skateboarding");

addOption(document.profile.sub_cat,"Skiing","Skiing");

addOption(document.profile.sub_cat,"Snowboarding","Snowboarding");

addOption(document.profile.sub_cat,"Soccer","Soccer");

addOption(document.profile.sub_cat,"Sports-Apparel","Sports-Apparel");

addOption(document.profile.sub_cat,"Surfing","Surfing");

addOption(document.profile.sub_cat,"Swimming","Swimming");

addOption(document.profile.sub_cat,"Tennis","Tennis");

addOption(document.profile.sub_cat,"Track-and-Field","Track-and-Field");

addOption(document.profile.sub_cat,"Triathlon","Triathlon");

addOption(document.profile.sub_cat,"Volleyball","Volleyball");

addOption(document.profile.sub_cat,"Wrestling","Wrestling");



}

if(document.profile.data_maincat.value == 'Reference-and-Education')

{

 addOption(document.profile.sub_cat,"Astronomy","Astronomy");

addOption(document.profile.sub_cat,"College-University","College-University");

addOption(document.profile.sub_cat,"Financial-Aid","Financial-Aid");

addOption(document.profile.sub_cat,"Future-Concepts","Future-Concepts");

addOption(document.profile.sub_cat,"Home-Schooling","Home-Schooling");

addOption(document.profile.sub_cat,"Languages","Languages");

addOption(document.profile.sub_cat,"Nature","Nature");

addOption(document.profile.sub_cat,"Online-Education","Online-Education");

addOption(document.profile.sub_cat,"Paranormal","Paranormal");

addOption(document.profile.sub_cat,"Psychic","Psychic");

addOption(document.profile.sub_cat,"Psychology","Psychology");

addOption(document.profile.sub_cat,"Science","Science");

addOption(document.profile.sub_cat,"Survival-and-Emergency","Survival-and-Emergency");

addOption(document.profile.sub_cat,"Vocational-Trade-Schools","Vocational-Trade-Schools");

addOption(document.profile.sub_cat,"Wildlife","Wildlife");



}

if(document.profile.data_maincat.value == 'Relationships')

{

 addOption(document.profile.sub_cat,"Affairs","Affairs");

addOption(document.profile.sub_cat,"Anniversaries","Anniversaries");

addOption(document.profile.sub_cat,"Commitment","Commitment");

addOption(document.profile.sub_cat,"Communication","Communication");

addOption(document.profile.sub_cat,"Conflict","Conflict");

addOption(document.profile.sub_cat,"Dating","Dating");

addOption(document.profile.sub_cat,"Dating-for-Boomers","Dating-for-Boomers");

addOption(document.profile.sub_cat,"Divorce","Divorce");

addOption(document.profile.sub_cat,"Domestic-Violence","Domestic-Violence");

addOption(document.profile.sub_cat,"Enhancement","Enhancement");

addOption(document.profile.sub_cat,"Friendship","Friendship");

addOption(document.profile.sub_cat,"Gay-Lesbian","Gay-Lesbian");

addOption(document.profile.sub_cat,"Love","Love");

addOption(document.profile.sub_cat,"Marriage","Marriage");

addOption(document.profile.sub_cat,"Post-Divorce","Post-Divorce");

addOption(document.profile.sub_cat,"Readiness","Readiness");

addOption(document.profile.sub_cat,"Sexuality","Sexuality");

addOption(document.profile.sub_cat,"Singles","Singles");

addOption(document.profile.sub_cat,"Wedding","Wedding");



}





if(document.profile.data_maincat.value == 'Self-Improvement')

{

 addOption(document.profile.sub_cat,"Abundance-Prosperity","Abundance-Prosperity");

addOption(document.profile.sub_cat,"Achievement","Achievement");

addOption(document.profile.sub_cat,"Addictions","Addictions");

addOption(document.profile.sub_cat,"Affirmations","Affirmations");

addOption(document.profile.sub_cat,"Anger-Management","Anger-Management");

addOption(document.profile.sub_cat,"Attraction","Attraction");

addOption(document.profile.sub_cat,"Coaching","Coaching");

addOption(document.profile.sub_cat,"Creativity","Creativity");

addOption(document.profile.sub_cat,"Empowerment","Empowerment");

addOption(document.profile.sub_cat,"Goal-Setting","Goal-Setting");

addOption(document.profile.sub_cat,"Grief-Loss","Grief-Loss");

addOption(document.profile.sub_cat,"Happiness","Happiness");

addOption(document.profile.sub_cat,"Innovation","Innovation");

addOption(document.profile.sub_cat,"Inspirational","Inspirational");

addOption(document.profile.sub_cat,"Leadership","Leadership");

addOption(document.profile.sub_cat,"Memory-Training","Memory-Training");

addOption(document.profile.sub_cat,"Mind-Development","Mind-Development");

addOption(document.profile.sub_cat,"Motivation","Motivation");

addOption(document.profile.sub_cat,"NLP-Hypnosis","NLP-Hypnosis");

addOption(document.profile.sub_cat,"Organizing","Organizing");

addOption(document.profile.sub_cat,"Personal-Growth","Personal-Growth");

addOption(document.profile.sub_cat,"Positive-Attitude","Positive-Attitude");

addOption(document.profile.sub_cat,"Self-Esteem","Self-Esteem");

addOption(document.profile.sub_cat,"Speed-Reading","Speed-Reading");

addOption(document.profile.sub_cat,"Spirituality","Spirituality");

addOption(document.profile.sub_cat,"Stress-Management","Stress-Management");

addOption(document.profile.sub_cat,"Success","Success");

addOption(document.profile.sub_cat,"Techniques","Techniques");

addOption(document.profile.sub_cat,"Time-Management","Time-Management");



}

if(document.profile.data_maincat.value == 'Shopping-and-Product-Reviews')

{

 addOption(document.profile.sub_cat,"Collectible-Jewelry","Collectible-Jewelry");

addOption(document.profile.sub_cat,"Electronics","Electronics");

addOption(document.profile.sub_cat,"Fashion-Style","Fashion-Style");

addOption(document.profile.sub_cat,"Gifts","Gifts");

addOption(document.profile.sub_cat,"Internet-Marketing","Internet-Marketing");

addOption(document.profile.sub_cat,"Jewelry-Diamonds","Jewelry-Diamonds");

addOption(document.profile.sub_cat,"Lingerie","Lingerie");

}

if(document.profile.data_maincat.value == 'Travel-and-Leisure')

{

addOption(document.profile.sub_cat,"Adventure-Travel","Adventure-Travel");



addOption(document.profile.sub_cat,"Airline-Travel","Airline-Travel");

addOption(document.profile.sub_cat,"Aviation-Airplanes","Aviation-Airplanes");

addOption(document.profile.sub_cat,"Bed-Breakfast-Inns","Bed-Breakfast-Inns");

addOption(document.profile.sub_cat,"Budget-Travel","Budget-Travel");

addOption(document.profile.sub_cat,"Camping","Camping");

addOption(document.profile.sub_cat,"Car-Rentals","Car-Rentals");

addOption(document.profile.sub_cat,"Charter-Jets","Charter-Jets");

addOption(document.profile.sub_cat,"City-Guides-and-Information","City-Guides-and-Information");

addOption(document.profile.sub_cat,"Cruise-Ship-Reviews","Cruise-Ship-Reviews");

addOption(document.profile.sub_cat,"Cruising","Cruising");

addOption(document.profile.sub_cat,"Destination-Tips","Destination-Tips");

addOption(document.profile.sub_cat,"First-Time-Cruising","First-Time-Cruising");

addOption(document.profile.sub_cat,"Golf-Travel-and-Resorts","Golf-Travel-and-Resorts");

addOption(document.profile.sub_cat,"Hotels-Accommodations","Hotels-Accommodations");

addOption(document.profile.sub_cat,"Limo-Rentals-Limousines","Limo-Rentals-Limousines");

addOption(document.profile.sub_cat,"Luxury-Cruising","Luxury-Cruising");

addOption(document.profile.sub_cat,"Outdoors","Outdoors");

addOption(document.profile.sub_cat,"Pet-Friendly-Rentals","Pet-Friendly-Rentals");

addOption(document.profile.sub_cat,"Sailing","Sailing");

addOption(document.profile.sub_cat,"Ski-Resorts","Ski-Resorts");

addOption(document.profile.sub_cat,"Timeshare","Timeshare");

addOption(document.profile.sub_cat,"Vacation-Homes","Vacation-Homes");

addOption(document.profile.sub_cat,"Vacation-Rentals","Vacation-Rentals");



}

if(document.profile.data_maincat.value == 'Womens-Interests')

{

addOption(document.profile.sub_cat,"Cosmetic-Surgery","Cosmetic-Surgery");

addOption(document.profile.sub_cat,"Menopause-HRT","Menopause-HRT");

addOption(document.profile.sub_cat,"Plus-Size","Plus-Size");



}

if(document.profile.data_maincat.value == 'Writing-and-Speaking')

{

addOption(document.profile.sub_cat,"Article-Marketing","Article-Marketing");

addOption(document.profile.sub_cat,"Book-Marketing","Book-Marketing");

addOption(document.profile.sub_cat,"Copywriting","Copywriting");

addOption(document.profile.sub_cat,"Public-Speaking","Public-Speaking");

addOption(document.profile.sub_cat,"Publishing","Publishing");

addOption(document.profile.sub_cat,"Technical-Writing","Technical-Writing");

addOption(document.profile.sub_cat,"Teleseminars","Teleseminars");

addOption(document.profile.sub_cat,"Writing","Writing");

addOption(document.profile.sub_cat,"Writing-Articles","Writing-Articles");

}

}



function removeAllOptions(selectbox)

{

	var i;

	for(i=selectbox.options.length-1;i>=0;i--)

	{

		//selectbox.options.remove(i);

		selectbox.remove(i);

	}

}





function addOption(selectbox, value, text )

{

	var optn = document.createElement("OPTION");

	optn.text = text;

	optn.value = value;



	selectbox.options.add(optn);

}

