function doitnow(){
the_title= document.thesource.pagetitle.value;
the_author= document.thesource.author.value;
the_copyright= document.thesource.copyright.value;
the_publisher= document.thesource.publisher.value;
the_audience= document.thesource.audience.options[document.thesource.audience.selectedIndex].value;
the_revisit= document.thesource.revisit.options[document.thesource.revisit.selectedIndex].value;
the_robotindex= document.thesource.robots.options[document.thesource.robots.selectedIndex].value;
the_chset= document.thesource.charset.options[document.thesource.charset.selectedIndex].value;
the_cache= document.thesource.caching.options[document.thesource.caching.selectedIndex].value;
the_desc = document.thesource.description.value;
the_keywords = document.thesource.keywords.value;
msg="";
msg+="<title>"+the_title+"<\/title>\n";
msg+='<meta name="meta-generator" content="Andys Meta Tagger - www.webdevtips.com">\n';
msg+='<meta http-equiv="Content-Type" content="text/html; charset='+the_chset+'">\n';
msg+='<meta http-equiv="Pragma" content="'+the_cache+'">\n';
if(document.thesource.ietool.checked==false){
msg+='<meta http-equiv="imagetoolbar" content="no"> \n';
}
if(document.thesource.mstag.checked==false){
msg+='<meta name="MSSmartTagsPreventParsing" content="TRUE">\n';
}

msg+='<meta name="audience" content="'+the_audience+'">\n';
msg+='<meta name="author" content="'+the_author+'">\n';
msg+='<meta name="copyright" content="'+the_copyright+'">\n';
msg+='<meta name="publisher" content="'+the_publisher+'">\n';
msg+='<meta name="robots" content="'+the_robotindex+'">\n';
msg+='<meta name="revisit-after" content="'+the_revisit+'">\n';
msg+='<meta name="description" content="'+the_desc+'">\n';
msg+='<meta name="keywords" content="'+the_keywords+'">\n';

var finaltext="<!-- start meta tag code -->\n"+msg+"\n<!-- http://www.webdevtips.com/webdevtips/codegen/metatag.shtml -->\n<!-- end meta tag code -->\n";
document.dothecode.codearea.value=finaltext;
return false;
}

