<!-- // load htmlarea
var page;
page=document.location.toString()

if(page.match(/https/i)){
        var _editor_url = "https://www.ehitched.com/javascript/";                     // URL to htmlarea files
}else{
        var _editor_url = "http://www.ehitched.com/javascript/";
}

var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
 document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
 document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// -->



//<!--
  //if(window.attachEvent)
  //  window.attachEvent("onload",restoreStyles);

  //function restoreStyles(){
  //  inputList = document.getElementsByTagName("input");
   // for(i=0;i<inputList.length;i++){
  //      if(inputList[i].style.backgroundColor != '#B5CAE7'){
  //                    //inputList[i].style.backgroundColor = "ffffff";
  //          }
   // }
  //  selectList = document.getElementsByTagName("select");
  //  for(i=0;i<selectList.length;i++)
  //    selectList[i].style.backgroundColor = "ffffff";
  //}//-->

var currentsecond = 6;
var targetURL = "";
var arr = new Array(13);




function image_change(image_name,new_src) {

	image1 = new Image();
	image1.src = "http://www.ehitched.com/images/my_pink_checklist_over.gif";


   	if (!document.images) return;

   	if( document.images[image_name] != null ) 
	  	document.images[image_name].src = new_src;
}

function setURL(url){
        targetURL = url;
}

function countredirect(){
	setTimeout("window.location='"+targetURL+"';",5000);
}

function newCountredirect(refer){
	alert("Welcome to eHitched.com!  You will now be redirected to "+refer+"");
        setTimeout("window.location='"+refer+"';",5000);
}

function setCookie(name, value, expires, path, domain, secure) {
	var date = new Date();
	date.setTime(date.getTime()+(expires*24*60*60*1000));

	document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + date.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");

}

var dt = new Date();
var dt_use = ''+Date.parse(dt)+'';
setCookie('client_time', ''+dt_use.substr(0,10)+'', 30, '/', '.ehitched.com');

var images=new Array();
var titles=new Array();
var descs=new Array();
var index=0;
var start=0;
var amount;
var saved;
var thestate=0;

function showMainImage(fid){

        if(thestate == 0){
                saved = document.getElementById(fid).innerHTML;
                document.getElementById(fid).innerHTML = '<img src="background1.gif" />';
                thestate = 1;
        }else{
                document.getElementById(fid).innerHTML = saved;
                thestate = 0;
        }

}

function userPrint(fid){

        var screenW = 640, screenH = 480;
        if (parseInt(navigator.appVersion)>3) {
                 screenW = screen.width;
                 screenH = screen.height;
        }
        else if (navigator.appName == "Netscape"
                    && parseInt(navigator.appVersion)==3
                    && navigator.javaEnabled()
           )
        {
                 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
                 var jScreenSize = jToolkit.getScreenSize();
                 screenW = jScreenSize.width;
                 screenH = jScreenSize.height;
        }


        screenW = screenW - 10;
        screenH = screenH - 180;

                window.open('http://www.ehitched.com/business/userprint.php?action='+fid+'','Print','height='+screenH+',width=550,scrollbars=yes,menubar=yes');

}


function loadImage(image2, title, description, iid){


        document.getElementById('1').style.filter = 'gray';
        document.getElementById('2').style.filter = 'gray';
        document.getElementById('3').style.filter = 'gray';
        document.getElementById('4').style.filter = 'gray';
        document.getElementById('5').style.filter = 'gray';
        document.getElementById('6').style.filter = 'gray';
        document.getElementById('7').style.filter = 'gray';
        document.getElementById('8').style.filter = 'gray';
        document.getElementById('9').style.filter = 'gray';
        document.getElementById('10').style.filter = 'gray';

        document.getElementById(iid).style.filter = 'none';
        document.getElementById('main_image').src = 'http://www.ehitched.com/image_gallery/'+image2+'';
        document.getElementById('main_content').innerHTML = '<b>'+title+'</b><br>'+description+'';
        document.getElementById('main_image').focus();

}

function loadPreview(fid){

        var screenW = 640, screenH = 480;
        if (parseInt(navigator.appVersion)>3) {
                 screenW = screen.width;
                 screenH = screen.height;
        }
        else if (navigator.appName == "Netscape"
                    && parseInt(navigator.appVersion)==3
                    && navigator.javaEnabled()
           )
        {
                 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
                 var jScreenSize = jToolkit.getScreenSize();
                 screenW = jScreenSize.width;
                 screenH = jScreenSize.height;
        }


        screenW = screenW - 10;
        screenH = screenH - 250;

                window.open('http://www.ehitched.com/business/loadpreview.php?action='+fid+'','Print','height='+screenH+',width=450,scrollbars=yes');

}

function openGuest(guestid){

        window.open('http://www.ehitched.com/business/guestdetails.php?guestid='+guestid+'','Register','height=400,width=350,scrollbars=yes');

}

function loadPrev(){

        var new_amount;

        start--;

        if(start < 0){
                start = amount - 1;
        }

        new_amount = start + 1;

        document.getElementById('image').src = "http://www.ehitched.com/image_gallery/"+images[start]+"";
        document.getElementById('amount').innerHTML = ""+new_amount+" of "+amount+"";
        document.getElementById('title').innerHTML = ""+titles[start]+"";
        document.getElementById('descrip').innerHTML = ""+descs[start]+"";
        document.getElementById('image').alt = ""+titles[start]+"";


}

function loadNext(){

        var new_amount;

        start++;

        if(start >= amount){
                start = 0;
        }

        new_amount = start + 1;

          document.getElementById('image').src = "http://www.ehitched.com/image_gallery/"+images[start]+"";
        document.getElementById('amount').innerHTML = ""+new_amount+" of "+amount+"";
        document.getElementById('title').innerHTML = ""+titles[start]+"";
        document.getElementById('descrip').innerHTML = ""+descs[start]+"";
        document.getElementById('image').alt = ""+titles[start]+"";


}

function loadPage(size){

        amount = size;

}

function saveImage(image, title, description){

        images[index] = image;
        titles[index] = title;
        descs[index] = description;
        index++;

}

function doSort(categoryn, zip){

        var stype;
        var box;

        stype = document.getElementById('sort').options[document.getElementById('sort').selectedIndex].value;

        location.href="http://www.ehitched.com/wedding_search/"+categoryn+"/"+zip+"-"+stype+"-0.htm";

}

function no_alias_register(id){

        var screenW = 640, screenH = 480;
        if (parseInt(navigator.appVersion)>3) {
                 screenW = screen.width;
                 screenH = screen.height;
        }
        else if (navigator.appName == "Netscape"
                    && parseInt(navigator.appVersion)==3
                    && navigator.javaEnabled()
           )
        {
                 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
                 var jScreenSize = jToolkit.getScreenSize();
                 screenW = jScreenSize.width;
                 screenH = jScreenSize.height;
        }


        screenW = screenW - 10;
        screenH = screenH - 50;


        if(id == 1){
                window.open('http://www.ehitched.com/register/member2','Register','height='+screenH+',width='+screenW+',scrollbars=yes');
        }else if(id == 2){
                    window.open('http://www.ehitched.com/register/register2','Register','height='+screenH+',width='+screenW+',scrollbars=yes');
        }else if(id == 3){
                    window.open('http://www.ehitched.com/register/wedding2','Register','height='+screenH+',width='+screenW+',scrollbars=yes');
        }

}

function lookupFees(val){
        document.getElementById('5_value').value = val;
}

function receptionDesigner(){

        window.open('http://www.ehitched.com/java/EHitchedGuestList.php','Reception','height=550,width=900,scrollbars=no');

}

function isImage(file){
        //Get a file extension
        var ext = file.substr(file.lastIndexOf('.')).toLowerCase()

        //Check extension to image types.

        return '.gif,.jpg,.png,.jpeg,.bmp,.ico,'.indexOf(ext+',') >= 0
}

function preview(i) {
        //get current input preview
        var file = i.value

        if (file.length<=0) return;

        //or get get preview for one of form field
          //var file = file_upload.SourceFile1.value

         var ipreview = document.all('ipreview')

        if (isImage(file)) {
                //Show preview for the image.
                ipreview.src = 'file://' + file
                ipreview.style.visibility = "visible";


        } else {
                     ipreview.style.visibility = "hidden";

        //                if (lastfieldname != i.name) alert('Please choose some image file (.gif,.jpg,.png,.jpeg,.bmp,.ico)');
        };
}


function previewPost(content){

        var newin;
        var title;

        title = document.getElementById('advice_title').value
         newin = window.open('','PreviewPost','height=450,width=455,scrollbars=yes');

        newin.document.write('<html>');
        newin.document.write('<head>');
        newin.document.write('<title>Preview Post</title>');
        newin.document.write('<LINK href="http://www.ehitched.com/style.css" rel="stylesheet" type="text/css">');
        newin.document.write('<script src="http://www.ehitched.com/javascript/ehitched.js"></script>');
        newin.document.write('</head>');
        newin.document.write('<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" style="background-color:#ffffff; background-image:url(\'http://www.ehitched.com/images/white_background.gif\');">');
        newin.document.write('<table width="100%" align="center" cellpadding="6" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" class="small" style="background-color:#698DC0; color:#ffffff;">');
        newin.document.write('<img src="http://www.ehitched.com/images/print_logo.gif" alt="Popup Header">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<br><br>');
               newin.document.write('<table width="85%" align="center" cellpadding="0" cellspacing="1" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" class="small">');
        newin.document.write('<b>'+title+'</b>');
        newin.document.write('<hr />');
        newin.document.write(''+content+'');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');



        newin.document.write('</body>');
        newin.document.write('</html>');

}

function replaceit(id, repltext){
        var seltext;


        seltext = (document.all)? document.selection.createRange() : document.getSelection();
        var selit = (document.all)? document.selection.createRange().text : document.getSelection();

        if (selit.length>=1){
                if (seltext) {
                        if ((repltext==' ')||(repltext==null)) repltext=seltext.text;
                        seltext.text = repltext;
                        window.focus()
                }
        }
}


function getSel()
{
        var txt;

        if (document.getSelection) txt = document.getSelection();
        else if (document.selection) txt = document.selection.createRange().text;
        else return;

        return(txt);
}

function doControl(quote){
        document.getElementById('post').focus();
        var text;
        var newtext;
        if(quote == "bold"){
                text = getSel();
                newtext = '<font style="font-weight:bold;">'+text+'</font></b>';
                  replaceit('post', newtext);
        }else if(quote == "italic"){
                text = getSel();
                newtext = '[italic]'+text+'[/italic]';
                  replaceit('post', newtext);
        }else if(quote == "underline"){
                text = getSel();
                newtext = '[underline]'+text+'[/underline]';
                  replaceit('post', newtext);
        }else if(quote == "quote"){
                text = getSel();
                newtext = '[quote]'+text+'[/quote]';
                  replaceit('post', newtext);
        }else if(quote == "image"){
                  var inputbox = prompt('Please enter your image url.', '');
                  if(inputbox){
                         addText( 'post', '[image]'+inputbox+'[/image]');
                  }
        }else if(quote == "url"){
                var inputbox = prompt('Please enter your url.', '');
                  if(inputbox){
                         addText( 'post', '[url]'+inputbox+'[/url]');
                  }
        }else{


        }




}

function addText( input, insText ) {

        document.getElementById(input).focus();



        if( document.getElementById(input).createTextRange ) {

                document.selection.createRange().text += insText;
         }else if( document.getElementById(input).setSelectionRange ) {
                   var len = document.getElementById(input).selectionEnd;
                document.getElementById(input).value = input.value.substr( 0, len ) + insText + input.value.substr( len );
                   document.getElementById(input).setSelectionRange(len+insText.length,len+insText.length);
         } else {

                document.getElementById(input).value += insText;
         }

}

function insertSmilie(text){

        addText('post', text);

}

function controlOff(id){

        document.getElementById(id).style.backgroundColor = 'ffffff';
        document.getElementById("instructions").value = '';
}

function controlOn(id){

        var act;
        var ins;

        if(id == "bold"){
                 act = "Make highlighted text bold";
                 ins = "BOLD: Highlight the text that you want bold.";
        }else if(id == "italic"){
                 act = "Make hightlighted text italic";
                 ins = "ITALIC: Highlight the text that you want italic.";
        }else if(id == "underline"){
                 act = "Make highlighted text underlined";
                 ins = "UNDERLINE: Highlight the text that you want underlined.";
        }else if(id == "quote"){
                 act = "Make highlighted text a quote";
                 ins = "QUOTE: Highlight the text that you want to be a quote.";
        }else if(id == "image"){
                 act = "Insert an image";
                 ins = "IMAGE: Just click the insert image button.";
        }else if(id == "url"){
                 act = "Insert a url";
                 ins = "URL: Just click the insert url button.";
        }else if(id == "list"){
                 act = "Insert a list";
                 ins = "First click the insert image button.";
        }else if(id == "olist"){
                 act = "Insert an ordered list";
        }

        document.getElementById(id).style.backgroundColor = 'B5CAE7';
        document.getElementById("instructions").value = ''+ins+'';

}

function setImageWidth(){
        var one;
        var two;
        var three;


        one = document.getElementById("t_image1").offsetWidth;
        document.getElementById("image1").width = one;

        two = document.getElementById("t_image2").offsetWidth;
        document.getElementById("image2").width = two;
        three = document.getElementById("t_image3").offsetWidth;
        document.getElementById("image3").width = three;
        document.getElementById("image1").height = document.getElementById("image2").height;


}



function next(page){
        document.form1.action=page;
}

function prev(page){

        document.form1.action=page;

}

function color_select(html_id, new_color){

        var color_id;

        color_id = ""+html_id+"_color";

        document.getElementById(html_id).value = new_color;

        document.getElementById(color_id).style.backgroundColor = new_color;

}

function update_color(html_id){

        var color_id;

        color_id = ""+html_id+"_color";

        document.getElementById(color_id).style.backgroundColor = document.getElementById(html_id).value

}

function whatsThis(id){

        window.open('http://www.ehitched.com/whatsthis.php?id='+id+'','Help','height=450,width=430,scrollbars=no');

}

function enableDesc(){

        if(document.step1.description.disabled == false){
                document.step1.description.disabled=true
        }else{
                document.step1.description.disabled=false
        }

}

function zipLookup2(){

        window.open('http://www.ehitched.com/lookup2.php?action=look','ZipLookup','height=300,width=500,scrollbars=yes');

}

function zipLookup(){

        window.open('http://www.ehitched.com/lookup.php?action=look','ZipLookup','height=300,width=500,scrollbars=yes');

}

function showPackageExample(package){

        window.open('http://www.ehitched.com/packageExample.php?package='+package+'','Package','height=500,width=600,scrollbars=yes');
}

function bioImage(){

        window.open('http://www.ehitched.com/business/bioimage.php','BioImage','height=500,width=475,scrollbars=yes');

}

function setZip(zip){

        document.getElementById('zip_lookup').innerHTML = '<input type="text" size="30" class="input" name="zip" value="'+zip+'">';

}

function printArticle(id){

        window.open('http://www.ehitched.com/printarticle.php?articleid='+id+'','EmailFriend','height=500,width=475,scrollbars=yes');

}

function emailAFriend(id){

        window.open('http://www.ehitched.com/emailafriend.php?articleid='+id+'','EmailFriend','height=500,width=475,scrollbars=yes');

}

function EmailVendor(vendorid){

        window.open('http://www.ehitched.com/email_vendor.php?accountid='+vendorid+'','EmailVendor','height=450,width=430,scrollbars=no');

}

function addavendor(tid){

        window.open('http://www.ehitched.com/business/member.php?action=add_vendor&account='+tid+'','AddVendor','height=10,width=10,scrollbars=yes');

}

function validateEmailForm(theForm){

        if (!validEmail(theForm.your_email,"Email Address"))
                return false;
        if(!(theForm.your_name.value)){
                alert("Please Enter Your Name.");
                theForm.your_name.focus();
                return false;
        }

        return true;

}

function validateFriendEmailForm(theForm){

        if (!validEmail(theForm.your_email,"Email Address"))
                return false;
        if(!(theForm.your_name.value)){
                alert("Please Enter Your Name.");
                theForm.your_name.focus();
                return false;
        }

        return true;

}

function validateForm3(theForm){

        if (!validEmail(theForm.email,"Email Address"))
                return false;
        if(!(theForm.company.value)){
                alert("Please enter a company name (can also be your name)");
                theForm.company.focus();
                return false;
        }
        if(!(theForm.address1.value)){
                alert("Please enter a company address");
                theForm.address1.focus();
                return false;
        }
        if(!(theForm.city.value)){
                alert("Please enter a company city");
                theForm.city.focus();
                return false;
        }
        if(!(theForm.zip.value)){
                alert("Please enter a company zip");
                theForm.zip.focus();
                return false;
        }
        if(!(theForm.phone.value)){
                alert("Please enter a company phone number");
                theForm.phone.focus();
                return false;
        }
}

function verifyMember(theForm){

        if (!validEmail(theForm.email,"Email Address"))
                return false;

        if(!(theForm.address1.value)){
                alert("Please enter your address");
                theForm.address1.focus();
                return false;
        }
        if(!(theForm.city.value)){
                alert("Please enter your city");
                theForm.city.focus();
                return false;
        }
        if(!(theForm.zip_code.value)){
                alert("Please enter your zip code");
                theForm.zip_code.focus();
                return false;
        }
        if(!(theForm.zip.value)){
                alert("Please enter the wedding location");
                theForm.zip.focus();
                return false;
        }
        if(!(theForm.firstname.value)){
                alert("Please enter your first name");
                theForm.firstname.focus();
                return false;
        }
        if(!(theForm.lastname.value)){
                alert("Please enter your last name");
                theForm.lastname.focus();
                return false;
        }
        if(!(theForm.password1.value)){
                alert("Please enter a password");
                theForm.password1.focus();
                return false;
        }
        if(!(theForm.password2.value)){
                alert("Please verify your password");
                theForm.password2.focus();
                return false;
        }

        if(theForm.password1.value != theForm.password2.value){
                alert("Your passwords do not match.");
                theForm.password1.focus();
                return false;
        }

        return true;

}

function verifyMember2(theForm){

        if (!validEmail(theForm.email,"Email Address"))
                return false;

        if(!(theForm.address1.value)){
                alert("Please enter your address");
                theForm.address1.focus();
                return false;
        }
        if(!(theForm.city.value)){
                alert("Please enter your city");
                theForm.city.focus();
                return false;
        }
        if(!(theForm.zip_code.value)){
                alert("Please enter your zip code");
                theForm.zip_code.focus();
                return false;
        }
        if(!(theForm.firstname.value)){
                alert("Please enter your first name");
                theForm.firstname.focus();
                return false;
        }
        if(!(theForm.lastname.value)){
                alert("Please enter your last name");
                theForm.lastname.focus();
                return false;
        }

        return true;

}

function validateForm2(theForm){

        var maxchars = 1000;
        var total=0;
        var remove=0;

        total = theForm.description.value.length;

        if(theForm.category.value == 0){
                alert("Please select a category");
                theForm.category.focus();
                return false;
        }

        if(total > maxchars){

                remove = total - maxchars;

                alert("The maximum characters allowed in a company description is 1000.  Please remove "+remove+" characters from your description");
                return false;

        }



}

function validateForm(theForm){

        if (!validEmail(theForm.email,"Email Address"))
                return false;
        if(!(theForm.company.value)){
                alert("Please enter a company name (can also be your name)");
                theForm.company.focus();
                return false;
        }
        if(!(theForm.address1.value)){
                alert("Please enter a company address");
                theForm.address1.focus();
                return false;
        }
        if(!(theForm.city.value)){
                alert("Please enter a company city");
                theForm.city.focus();
                return false;
        }
        if(!(theForm.zip.value)){
                alert("Please enter a company zip");
                theForm.zip.focus();
                return false;
        }
        if(!(theForm.phone.value)){
                alert("Please enter a company phone number");
                theForm.phone.focus();
                return false;
        }
        //if(!(theForm.ccname.value)){
          //      alert("Please enter the name as it appears on your card");
             //   theForm.ccname.focus();
                //return false;
        //}
        //if(!(theForm.ccnum.value)){
        //        alert("Please enter a card number");
        //        theForm.ccname.focus();
        //        return false;
        //}
        //if(!(theForm.ccexp_month.value) || !(theForm.ccexp_year.value)){
        //        alert("Please enter a valid expiration date");
        //        theForm.ccexp_month.focus();
        //        return false;
        //}
        //if(!(theForm.ccaddress1.value)){
        //        alert("Please enter a billing address");
        //        theForm.ccaddress1.focus();
        //        return false;
        //}
        //if(!(theForm.cccity.value)){
        //        alert("Please enter a billing city");
        //        theForm.cccity.focus();
        //        return false;
        //}
        //if(!(theForm.cczip.value)){
        //        alert("Please enter a billing zip");
        //        theForm.cczip.focus();
        //        return false;
        //}
        if(theForm.password.value != theForm.password2.value){
                alert("Your passwords do not match");
                theForm.password.focus();
                return false;
        }
        if(!(theForm.password.value)){
                alert("Please enter a password");
                theForm.password.focus();
                return false;
        }
        if(!(theForm.password2.value)){
                alert("Please re-type your password");
                theForm.password2.focus();
                return false;
        }
}

function validateForm6(theForm){


        if(theForm.agree.checked == false){
                alert("You must agree to the terms and conditions of this site before joining");
                theForm.terms.focus();
                return false;
        }

}

function validateForm5(theForm){



        if(theForm.password.value != theForm.password2.value){
                alert("Your passwords do not match");
                theForm.password.focus();
                return false;
        }
        if(!(theForm.password.value)){
                alert("Please enter a password");
                theForm.password.focus();
                return false;
        }
        if(!(theForm.password2.value)){
                alert("Please re-type your password");
                theForm.password2.focus();
                return false;
        }
}

function validateForm4(theForm){


        if(!(theForm.ccname.value)){
                alert("Please enter the name as it appears on your card");
                theForm.ccname.focus();
                return false;
        }
        if(!(theForm.ccnum.value)){
                alert("Please enter a card number");
                theForm.ccname.focus();
                return false;
        }
        if(!(theForm.ccexp_month.value) || !(theForm.ccexp_year.value)){
                alert("Please enter a valid expiration date");
                theForm.ccexp_month.focus();
                return false;
        }
        if(!(theForm.ccaddress1.value)){
                alert("Please enter a billing address");
                theForm.ccaddress1.focus();
                return false;
        }
        if(!(theForm.cccity.value)){
                alert("Please enter a billing city");
                theForm.cccity.focus();
                return false;
        }
        if(!(theForm.cczip.value)){
                alert("Please enter a billing zip");
                theForm.cczip.focus();
                return false;
        }

}
function validEmail(formField,fieldLabel){

        var result = true;

        if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) )
        {
                alert("Please enter a valid email address");
                formField.focus();
                result = false;
        }

  return result;

}

function isEmailAddr(email)
{
  var result = false;
  var theStr = new String(email);
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
        result = true;
  }
  return result;
}

function tryChecklist(){

        var newin;
        var title;


        for(i=2; i<13; i++){
                 arr[i] = 0;
        }

        newin = window.open('','checklist','height=450,width=455,scrollbars=yes');

        newin.document.write('<html>');
        newin.document.write('<head>');
        newin.document.write('<title>Test Drive A Wedding Checklist</title>');
        newin.document.write('<LINK href="http://www.ehitched.com/style.css" rel="stylesheet" type="text/css">');
        newin.document.write('<script src="http://www.ehitched.com/javascript/ehitched.js"></script>');
        newin.document.write('</head>');
        newin.document.write('<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">');
        newin.document.write('<table width="100%" cellpadding="8" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" valign="top" class="small">');
        newin.document.write('<table width="100%" cellpadding="2" cellspacing="1" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" class="small" background="http://www.ehitched.com/images/line_back.gif">');
        newin.document.write('&nbsp; <img src="http://www.ehitched.com/images/10_months.gif" alt="Checklist">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small_pink_checklist" valign="top" id=\"2_dot\" name=\"2_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"2_text\" name=\"2_text\">');
        newin.document.write('Announce the big news!');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="center" id=\"2_stuff\" name=\"2_stuff\">');
        newin.document.write('<select name="2" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr> ');
        newin.document.write('<td width="1%" class="small_pink_checklist" valign="top" id=\"3_dot\" name=\"3_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"3_text\" name=\"3_text\">');
        newin.document.write('Envision the type of wedding you\'ve always wanted, and the time of year that would be the most fitting.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="center" id=\"3_stuff\" name=\"3_stuff\">');
        newin.document.write('<select name="3" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small_pink_checklist" valign="top" id=\"4_dot\" name=\"4_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"4_text\" name=\"4_text\">');
        newin.document.write('Set a realistic budget.  This may involve talking to parents, so allow plenty of time to meet and discuss with all parties involved.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="center" id=\"4_stuff\" name=\"4_stuff\"> ');
        newin.document.write('<select name="4" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td> ');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small_pink_checklist" valign="top" id=\"5_dot\" name=\"5_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"5_text\" name=\"5_text\">');
        newin.document.write('Choose the date and time.  Make sure to have a few alternative dates and times to ensure that all venues and instrumental people (busy relatives, officiants, vendors) are available. Finalize ASAP.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="center" id=\"5_stuff\" name=\"5_stuff\">');
        newin.document.write('<select name="5" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td> ');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"6_dot\" name=\"6_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"6_text\" name=\"6_text\">');
        newin.document.write('Research and hire a wedding coordinator, if so inclined.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="center" id=\"6_stuff\" name=\"6_stuff\">');
        newin.document.write('<select name="6" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr> ');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"7_dot\" name=\"7_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"7_text\" name=\"7_text\">');
        newin.document.write('Begin compiling guest list.  If necessary, ask parents to compile their own guest lists in order to ensure no one (distant relatives, close family friends) is offended by being forgotten.  Organize addresses.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"7_stuff\" name=\"7_stuff\">');
        newin.document.write('<select name="7" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table> ');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"8_dot\" name=\"8_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"8_text\" name=\"8_text\">');
        newin.document.write('Look for and reserve ceremony and reception sites. ');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"8_stuff\" name=\"8_stuff\">');
        newin.document.write('<select name="8" class="select"> ');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option> ');
        newin.document.write('</select> ');
        newin.document.write('</td> ');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"9_dot\" name=\"9_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"9_text\" name=\"9_text\">');
        newin.document.write('Ask friends and relatives to be attendants.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"9_stuff\" name=\"9_stuff\">');
        newin.document.write('<select name="9" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option> ');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"10_dot\" name=\"10_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"10_text\" name=\"10_text\">');
        newin.document.write('Begin searching for and thinking about purchasing a wedding gown and accessories.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"10_stuff\" name=\"10_stuff\">');
        newin.document.write('<select name="10" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option> ');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"11_dot\" name=\"11_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"11_text\" name=\"11_text\">');
        newin.document.write('Finalize booking with officiant.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"11_stuff\" name=\"11_stuff\">');
        newin.document.write('<select name="11" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option> ');
        newin.document.write('</select>');
        newin.document.write('</td> ');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="2" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="1%" class="small" valign="top" id=\"12_dot\" name=\"12_dot\">');
        newin.document.write('<img src="http://www.ehitched.com/images/blue_dot.gif" alt="Bullet">');
        newin.document.write('</td>');
        newin.document.write('<td width="74%" class="small" id=\"12_text\" name=\"12_text\">');
        newin.document.write('Finalize booking with caterer.');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" id=\"12_stuff\" name=\"12_stuff\">');
        newin.document.write('<select name="12" class="select">');
        newin.document.write('<option value="0">Not Finished</option>');
        newin.document.write('<option value="1">Finished</option>');
        newin.document.write('<option value="2">Remove</option>');
        newin.document.write('</select>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="100%" cellpadding="8" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" valign="top" class="small_top" align="right">');
        newin.document.write('<input type="image" src="http://www.ehitched.com/images/update.gif" onClick=\"updateChecklist();\">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');


        newin.document.write('</body>');
        newin.document.write('</html>');

}

function updateChecklist(){

        var i;
        var temp;
        var temp2;


        for(i=2; i<13; i++){
                if(arr[i] != 12){
                        if(document.getElementById(i).options[document.getElementById(i).options.selectedIndex].value == 1){
                                temp = ""+i+"_stuff";
                                temp2 = ""+i+"_text";

                                document.getElementById(temp).innerHTML = "Finished";
                                document.getElementById(temp).className = "small_pink_checklist";
                                document.getElementById(temp2).className = "small_pink_checklist";
                                arr[i] = 12;
                        }else if(document.getElementById(i).options[document.getElementById(i).options.selectedIndex].value == 2){
                                temp = ""+i+"_stuff";
                                temp2 = ""+i+"_text";
                                temp3 = ""+i+"_dot";

                                document.getElementById(temp).innerHTML = "";
                                document.getElementById(temp2).innerHTML = "";
                                document.getElementById(temp3).innerHTML = "";
                                arr[i] = 12;
                        }

                       }
        }

}

function tryBudget(){

        var newin;
        var title;


        for(i=2; i<13; i++){
                 arr[i] = 0;
        }

        newin = window.open('','checklist','height=450,width=455,scrollbars=yes');

        newin.document.write('<html>');
        newin.document.write('<head>');
        newin.document.write('<title>Test Drive A Wedding Budget</title>');
        newin.document.write('<LINK href="http://www.ehitched.com/style.css" rel="stylesheet" type="text/css">');
        newin.document.write('<script src="http://www.ehitched.com/javascript/ehitched.js"></script>');
        newin.document.write('</head>');
        newin.document.write('<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">');

        newin.document.write('<br><br><table width="90%" align="center" cellpadding="1" cellspacing="3" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="40%" valign="top" class="instructions_small">');
        newin.document.write('<b>Your Budget:</b>');
        newin.document.write('</td>');
        newin.document.write('<td width="60%" valign="top" class="instructions_small">');
        newin.document.write('<input type="text" class="input" name="budget" size="10" value="">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="100%" cellpadding="8" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" valign="top" class="small">');
        newin.document.write('<table width="100%" cellpadding="2" cellspacing="1" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" class="small" background="http://www.ehitched.com/images/line_back.gif">');
        newin.document.write('&nbsp; <img src="http://www.ehitched.com/images/ceremony.gif" alt="Budget">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="5" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small_bottom" valign="top">');
        newin.document.write('&nbsp;');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small_bottom">');
        newin.document.write('Item');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small_bottom" align="right" valign="top">');
        newin.document.write('Amount');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top" id="2_1" name="2_1">');
        newin.document.write('<input type="checkbox" name="2" style="font-size:8pt; font-family:verdana;" CHECKED>');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" id="2_2" name="2_2">');
        newin.document.write('<b><u>Location Fee</u></b><br>When considering a location, a lot can affect the price.  Membership to clubs or a house of worship can decrease the fee whereas a Saturday or peak season booking can send the price sky rocketing.  Just remember - this should be the most picturesque of the sequence of events on your wedding day. <font style="font-size:7pt; font-family:verdana;"></font>');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="2_3" name="2_3">');
        newin.document.write('<input type="text" name="2_value" style="font-size:8pt; font-family:verdana;" size="10" value="">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top" id="3_1" name="3_1">');
        newin.document.write('<input type="checkbox" name="3" style="font-size:8pt; font-family:verdana;" CHECKED>');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" id="3_2" name="3_2">');
        newin.document.write('<b><u>Officiant Fee</u></b><br>This varies based on availability, popularity, personal repertoire, traveling options, etc. There may be a donation request and no set fee, or the fee may be built into the location fee, based on the size of the house of worship. <font style="font-size:7pt; font-family:verdana;"></font>');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="3_3" name="3_3">');
        newin.document.write('<input type="text" name="3_value" style="font-size:8pt; font-family:verdana;" size="10" value="">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top" id="4_1" name="4_1">');
        newin.document.write('<input type="checkbox" name="4" style="font-size:8pt; font-family:verdana;" CHECKED>');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" id="4_2" name="4_2">');
        newin.document.write('<b><u>Accessories (Candles, chuppah, runner, etc.</u></b><br>Try to set aside a budget for this category prior to shopping.  This will help you create the most hassle free selection process while ensuring plenty of money for the after party and honeymoon! <font style="font-size:7pt; font-family:verdana;"></font>');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="4_3" name="4_3">');
        newin.document.write('<input type="text" name="4_value" style="font-size:8pt; font-family:verdana;" size="10" value="">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top" id="5_1" name="5_1">');
        newin.document.write('<input type="checkbox" name="5" style="font-size:8pt; font-family:verdana;" CHECKED>');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" id="5_2" name="5_2">');
        newin.document.write('<b><u>License</u></b><br>Marriage Licenses are most likely at a set fee in your state. <font style="font-size:7pt; font-family:verdana;"></font>');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="5_3" name="5_3">');
        newin.document.write('<input type="text" name="5_value" style="font-size:8pt; font-family:verdana;" size="10" value="">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="100%" cellpadding="8" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="100%" valign="top" class="small_top" align="right">');
        newin.document.write('<input type="image" src="http://www.ehitched.com/images/update.gif" onClick="javascript:updateBudget();">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');
        newin.document.write('<table width="90%" align="center" cellpadding="5" cellspacing="0" border="0">');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top">');
        newin.document.write('&nbsp;');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" align="right">');
        newin.document.write('Total');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="total" name="total">');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top">');
        newin.document.write('&nbsp;');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" align="right">');
        newin.document.write('<b>Your Budget</b>');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="your_budget" name="your_budget">');
        newin.document.write('<b></b>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('<tr>');
        newin.document.write('<td width="10%" class="small" valign="top">');
        newin.document.write('&nbsp;');
        newin.document.write('</td>');
        newin.document.write('<td width="65%" class="small" align="right">');
        newin.document.write('Amount Under Budget');
        newin.document.write('</td>');
        newin.document.write('<td width="25%" class="small" align="right" valign="top" id="under" name="under">');
        newin.document.write('<font color="green">');
        newin.document.write('</font>');
        newin.document.write('</td>');
        newin.document.write('</tr>');
        newin.document.write('</table>');

        newin.document.write('</body>');
        newin.document.write('</html>');

}

function updateBudget(){

        var i;
        var temp;
        var temp2;
        var temp3;
        var temp4;
        var amount;
        var under;
        var budget;

        var val;

        amount = 0.00;

        budget = 1 * document.getElementById('budget').value;



        for(i=2; i<6; i++){
                if(arr[i] != 12){
                        if(!(document.getElementById(i).checked)){
                                temp = ""+i+"_value";
                                temp2 = ""+i+"_1";
                                temp3 = ""+i+"_2";
                                temp4 = ""+i+"_3";

                                document.getElementById(temp).value = "";
                                document.getElementById(temp2).innerHTML = "";
                                document.getElementById(temp3).innerHTML = "";
                                document.getElementById(temp4).innerHTML = "";

                                arr[i] = 12;
                        }else{

                                  temp = ""+i+"_value";

                                amount += 1 * document.getElementById(temp).value;

                        }

                       }
        }


        under = budget - amount;

        if(under < 0){
                 document.getElementById('under').innerHTML = "<font color=\"red\">"+under+"</font>";
        }else{
                     document.getElementById('under').innerHTML = "<font color=\"green\">"+under+"</font>";
        }

        document.getElementById('your_budget').innerHTML = "<b>"+budget+"</b>";
        document.getElementById('total').innerHTML = ""+amount+"";
}

function tryWebPage(){

        var newin;
        var title;


        for(i=2; i<13; i++){
                 arr[i] = 0;
        }

        newin = window.open('','checklist','height=450,width=455,scrollbars=yes');

        newin.document.write('<html>');
        newin.document.write('<head>');
        newin.document.write('<title>Test Drive A Wedding Checklist</title>');
        newin.document.write('<LINK href="http://www.ehitched.com/style.css" rel="stylesheet" type="text/css">');
        newin.document.write('<script src="http://www.ehitched.com/javascript/ehitched.js"></script>');
        newin.document.write('</head>');
        newin.document.write('<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">');


        newin.document.write('</body>');
        newin.document.write('</html>');

}