
<!-- ############################################################################### -->
<!-- ############################################################################### -->
var xmlhttp=false;
var pageResponse=null;
var rootdomain="http://"+window.location.hostname;

var emailgood=true;
var verifygood=true;
var otherfieldsgood=true;
var securitygood=true;
var handlinkgood=true;
var linkgood=true;
var invalidemail = "Invalid Email Address";
var invalidverify = "Failed Email Verification";
var invalidelink = "Invalid YouTube Link";
var invalidentry = "Complete Required Item";
var invalidsecurity = "Invalid Security Code";
var errormessage = "Please Fix Error Indicated Above";


<!-- ############################################################################### -->

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	var imageWidth2 = 820;	
	var imageHeight2 = 1260;	
	newWindow = window.open("","newWindow","width="+imageWidth2+",height="+imageHeight+",scrollbars=yes,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head>'); 
	newWindow.document.write('<meta http-equiv="imagetoolbar" content="no">'); 
	newWindow.document.write('<title>'+alt+'</title>'); 
	newWindow.document.write('<script language="JavaScript">');
	newWindow.document.write('var message="Function Disabled!";');
	newWindow.document.write('function clickIE() {if (document.all) {alert(message);return false;}}');
	newWindow.document.write('function clickNS(e) {if ');
	newWindow.document.write('(document.layers||(document.getElementById&&!document.all)) {');
	newWindow.document.write('if (e.which==2||e.which==3) {alert(message);return false;}}}');
	newWindow.document.write('if (document.layers) ');
	newWindow.document.write('{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}');
	newWindow.document.write('else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}');
	newWindow.document.write('document.oncontextmenu=new Function("return false")');
	newWindow.document.write('</script>');
	newWindow.document.write('</head>'); 
	newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
	newWindow.document.write('</script>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

<!-- ############################################################################### -->

var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

<!-- ############################################################################### -->

function opn(link, theHeight,type)
{
      open(link, type,'toolbar=no,height=' + theHeight + ',width=500,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}

<!-- ############################################################################### -->

function GetXmlHttpObject()
{
   //Try to set up an IE XMLHTTP Request Object
   try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} 
   catch (error) 
   {
      try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} 
      catch (error) {xmlhttp = false;}
   }
   
   //Try to set up Mozilla and Safari XMLHTTP Request Object
   if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
   {
      try {xmlhttp = new XMLHttpRequest();} 
      catch (error) {xmlhttp=false;}
   }
   
   //Try to set up IceBrowser XMLHTTP Request Object 
   if (!xmlhttp && window.createRequest) 
   {
      try {xmlhttp = window.createRequest();} 
      catch (error) {xmlhttp=false;}
   }
  
   return xmlhttp;
}
<!-- ############################################################################### -->

function showPhoto(photolink)
{
	ajaxpage(rootdomain+'/LovelyPhotoFiles/PhotoPage.php?plink='+photolink, 'lovelyPhotoArea');
  ajaxpage(rootdomain+'/LovelyPhotoFiles/TotalCount.php', 'photoBannerHeaderTextRight');
   
  checkCommentsOpen(photolink);
}

<!-- ############################################################################### -->

function setphotolink(photolink)
{
	
   window.scrollTo(0,230);

/*   var rand = Math.floor(Math.random()*4)+1;
   
   if (rand == 2)
   {  
   	  ajaxpage(rootdomain+'/Advertisement/AdBanner.php', 'youTubeVideoArea');
   	  setTimeout(function () { showVideo(videolink); }, 3000);
   }
   else
   {
      showVideo(videolink);
   }*/
      showPhoto(photolink);

}

<!-- ############################################################################### -->

<!-- ############################################################################### -->

function RateItem(varItemId, varRating)
{
   var varOrigClassName = document.getElementById(varItemId).className;

   xmlhttp=GetXmlHttpObject();
	 if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }
	 
      xmlhttp.open('get', rootdomain+'/LovelyPhotoFiles/RatingItem.php?item='+varItemId+'&rating='+varRating+'&classes='+varOrigClassName, false);
      xmlhttp.onreadystatechange = function (){
   	     if (xmlhttp.readyState == 4) 
         {
            if (xmlhttp.status == 200) 
            {  
               ajaxpage(rootdomain+'/LovelyPhotoFiles/PhotoRatingCount.php?vlink='+varItemId, 'ratingsCount');
               ReloadRating(xmlhttp);
            }
            else
          	{
               RatingError();
          	}
         }
    	};
   
   xmlhttp.send(null);  
}

<!-- #################### -->

function ReadNameValuePairs(nameValuePair)
{
  var trimspaces = /(\s)+/;
  var returnData = new Array();
  var pairs      = nameValuePair.split('&');
  
  for (var i = 0; i < pairs.length; i++)
  {
    var pair = pairs[i].split('=');
    returnData[pair[0].replace(trimspaces, "")] = pair[1];
  }
  
  return returnData;
}

<!-- #################### -->

function ReloadRating(requestObj)
{
  var newlines   = /(\r\n|\r|\n)/;
  var returnData = ReadNameValuePairs(requestObj.responseText.replace(newlines, ""));
    
  document.getElementById(returnData['item']).className = returnData['classes'];
  var liObj = document.getElementById(returnData['item']).getElementsByTagName('a');
  
  for (var i = 0; i < liObj.length; i++)
  {
    liObj[i].onclick = function(){};
  }
}

<!-- #################### -->

function RatingError()
{
}

<!-- ############################################################################### -->

function Login(loginType)
{
   if (loginType == 1)
   {
       document.getElementById('photoBannerHeaderTextLeft').innerHTML= "Please Login....";
       ajaxpage(rootdomain+'/Login/LoginScreen.php', 'lovelyPhotoArea');
   }
   else
   {
      if (loginType == 2)
      {
         document.getElementById('photoBannerHeaderTextLeft').innerHTML= "Retrieve Password....";
         ajaxpage(rootdomain+'/Login/GetPassword.php', 'lovelyPhotoArea');
      }
      else
      {
         document.getElementById('photoBannerHeaderTextLeft').innerHTML= "Thanks For Registering....";
         ajaxpage(rootdomain+'/Login/NewUser.php', 'lovelyPhotoArea');
      }
   }
}

<!-- #################### -->

function Logout()
{
	 var setMoreLink;
   
   ajaxpage(rootdomain+'/Login/Logout.php', 'elitePhotoArea');
   document.getElementById('photoBannerHeaderTextLeft').innerHTML= "Logging Out...";
   document.getElementById('logoutEditText').innerHTML="";  
   
	 setTimeout(function () 
	            { 
            	   setMoreLink = "<a href=\'javascript:Login(1)\'>Login</a> [<a href=\'javascript:Login(3)\'>Register</a>]";
                 document.getElementById('photoBannerHeaderTextLeft').innerHTML= setMoreLink;
	 	          }, 5000);
}

<!-- ############################################################################### -->

function textCounter(field, countfield, maxlimit) 
{
   if (field.value.length > maxlimit)
   {
      field.value = field.value.substring(0, maxlimit);
   }
   else 
   {
      countfield.value = maxlimit - field.value.length;
   }
}

<!-- ############################################################################### -->

function addComment(photolink)
{
	 var app =  document.getElementById("addcomment");
	 var comments = app.comments.value;
	 
	 if (comments == "")
	 {
      ViewAddComment(photolink, 0)
      return;
	 }
	 
   xmlhttp=GetXmlHttpObject();
	 if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }
	 
   xmlhttp.open('get', rootdomain+'/Comments/AddComment.php?vlink='+photolink+'&comments='+comments, false);
   xmlhttp.onreadystatechange = function (){
	    if (xmlhttp.readyState == 4) 
      {
         if (xmlhttp.status == 200) 
         {
            ViewAddComment(photolink, 0);
         }
      }
   };
   
   xmlhttp.send(null);
}

<!-- #################### -->

function checkCommentsOpen(photolink)
{
   xmlhttp=GetXmlHttpObject();
	 if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }
	 
      xmlhttp.open('get', rootdomain+'/Comments/CheckCommentsOpen.php', false);
      xmlhttp.onreadystatechange = function (){
   	     if (xmlhttp.readyState == 4) 
         {
            if (xmlhttp.status == 200) 
            {
               comOpen = xmlhttp.responseText; 

               if (comOpen == 1)
               {
         	         ViewAddComment(photolink, 0)
	             }
            }
         }
    	};
   
   xmlhttp.send(null);
}

<!-- #################### -->

function ViewAddComment(photolink, comType)
{
   var setMoreLink;
   
   document.getElementById('photoHeaderText').innerHTML= "Photo Comments";
   document.getElementById('relatedAreaSmall1').innerHTML= "<a href=\'javascript:userChoiceShow(1)\'>[Return To Most Viewed]</a>";
   document.getElementById('photoHeaderText2').innerHTML= "";
   document.getElementById('relatedAreaSmall2').innerHTML=  "";
   document.getElementById('relatedAreaSmall3').innerHTML=  "";

   if (comType == 0)
   {
	 	  setMoreLink = "<a href=\'javascript:ViewAddComment(%27"+photolink+"%27,1)\'>[Add Comment]</a>";
      document.getElementById('photoHeaderText2').innerHTML= setMoreLink;
      ajaxpage(rootdomain+'/Comments/VideoComments.php?vlink='+photolink+'&cbox='+comType, 'relatedPhotoArea');
   }
   else
   {
      document.getElementById('photoHeaderText2').innerHTML= "";
      ajaxpage(rootdomain+'/Comments/VideoComments.php?vlink='+photolink+'&cbox='+comType, 'relatedPhotoArea');
   }
}

<!-- ############################################################################### -->

function setAllFavorites(pageNum)
{
   document.getElementById('photoHeaderText2').innerHTML= "";
   ajaxpage(rootdomain+'/LovelyPhotoFiles/AllFavoriteVideos.php?&rowNav='+pageNum, 'relatedPhotoArea');
}

<!-- #################### -->

function Favorites(photolink, favType)
{
	 var showAll;
   var setMoreLink;
   
   xmlhttp=GetXmlHttpObject();
	 if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }
	 
   if (favType < 3)
   {
      xmlhttp.open('get', rootdomain+'/LovelyPhotoFiles/FavoriteVideos.php?vlink='+photolink+'&action='+favType, false);
      xmlhttp.send(null);
   }
   else
   {
      document.getElementById('photoHeaderText').innerHTML= "Your Favorites";
      document.getElementById('relatedAreaSmall1').innerHTML= "<a href=\'javascript:userChoiceShow(1)\'>[Return To Most Viewed]</a>";
      document.getElementById('photoHeaderText2').innerHTML= "";
      document.getElementById('relatedAreaSmall2').innerHTML=  "";
      document.getElementById('relatedAreaSmall3').innerHTML=  "";

      xmlhttp.open('get', rootdomain+'/LovelyPhotoFiles/FavoriteVideos.php?vlink='+photolink+'&action=4', false);
      xmlhttp.onreadystatechange = function (){
   	     if (xmlhttp.readyState == 4) 
         {
            if (xmlhttp.status == 200) 
            {
               showAll = xmlhttp.responseText; 

               if (showAll < 29)
               {
         	         document.getElementById('photoHeaderText2').innerHTML= "";
	             }
               else
               {
	 	              setMoreLink = "<a href=\'javascript:setAllFavorites(0)\'>[View All]</a>";
    	            document.getElementById('photoHeaderText2').innerHTML= setMoreLink;
               }

               ajaxpage(rootdomain+'/LovelyPhotoFiles/FavoriteVideos.php?vlink='+photolink+'&action=3', 'relatedPhotoArea');
            }
         }
    	};
   
   xmlhttp.send(null);
   
   }
}

<!-- ############################################################################### -->

function setPhotoGallery(pageNum)
{
   ajaxpage(rootdomain+'/LovelyPhotoFiles/PhotoGallery.php?rowNav='+pageNum, 'lovelyGalleryPhotoArea');
}

<!-- ############################################################################### -->

function showMostRelated()
{
   document.getElementById('photoHeaderText').innerHTML= "Most Viewed Photos";
   document.getElementById('photoHeaderText2').innerHTML= "";
   document.getElementById('relatedAreaSmall').innerHTML= "";

   ajaxpage(rootdomain+'/LovelyPhotoFiles/MostViewPhotos.php', 'relatedPhotoArea');
}

<!-- ############################################################################### -->

function setBannerPage(pageNum)
{
	 var setPageLink;
	 var apex_page_left;
	 var apex_page_right;
	 
	 if (pageNum == 1)
	 {
      setPageLink = "<a href=\'javascript:;\' class=\'opacityit3\'><img src=\'http://www.lovelysecrets.com/images/NewLayout/ArrowLeft.jpg\' width=\'13\' height=\'13\' /></a>";
	 }
	 else
	 {
	 	  apex_page_left = pageNum - 1;
      setPageLink = "<a href=\'javascript:setBannerPage("+apex_page_left+")\' class=\'opacityit2\'><img src=\'http://www.lovelysecrets.com/images/NewLayout/ArrowLeft.jpg\' width=\'13\' height=\'13\' /></a>";
	 }

   document.getElementById('navImageLeft').innerHTML= setPageLink;

	 if (pageNum == 7)
	 {
      setPageLink = "<a href=\'javascript:;\' class=\'opacityit3\'><img src=\'http://www.lovelysecrets.com/images/NewLayout/ArrowRight.jpg\' width=\'13\' height=\'13\' /></a>";
	 }
	 else
	 {
	 	  apex_page_right = pageNum + 1;
      setPageLink = "<a href=\'javascript:setBannerPage("+apex_page_right+")\' class=\'opacityit2\'><img src=\'http://www.lovelysecrets.com/images/NewLayout/ArrowRight.jpg\' width=\'13\' height=\'13\' /></a>";
	 }
	 
   document.getElementById('navImageRight').innerHTML= setPageLink;

   ajaxpage(rootdomain+'/BannerArea/BannerArea.php?bannerpage='+pageNum, 'bannerContentArea');
}

<!-- ############################################################################### -->

function refreshRecentAdd()
{
   ajaxpage(rootdomain+'/LovelyPhotoFiles/ShowRecentAddPhotos.php', 'recentPhotoAddAreaList');
}

<!-- ############################################################################### -->

function userChoice(photolink, choice)
{
  
   xmlhttp=GetXmlHttpObject();
	 if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }
	 
      xmlhttp.open('get', rootdomain+'/LovelyPhotoFiles/SetCategory.php?photolink='+photolink+'&choice='+choice, false);
      xmlhttp.onreadystatechange = function (){
   	     if (xmlhttp.readyState == 4) 
         {
            if (xmlhttp.status == 200) 
            {  
               ReloadCategory();
            }
            else
          	{
               RatingError();
          	}
         }
    	};
   
   xmlhttp.send(null);  
}

<!-- #################### -->

function ReloadCategory()
{
   var setCategoryLink;
   
   setCategoryLink = "Magazine&nbsp;|&nbsp;Wifey&nbsp;|&nbsp;Trick";
   document.getElementById('setCategoryArea').innerHTML= setCategoryLink;
}

<!-- #################### -->

function userChoiceShow(choice)
{
   var setChoiceLink1;
   var setChoiceLink2;
   var setChoiceLink3;
   var setChoiceLink4;

   switch(choice)
   {
   	  
   	  case 1:  
         setChoiceLink1 = "";
         setChoiceLink2 = "<a href='javascript:userChoiceShow(2)' onmouseover='Tip(\"  Top Magazine Quality Photos!!!\")' onmouseout='UnTip()'>[Magazine]</a>";
         setChoiceLink3 = "<a href='javascript:userChoiceShow(3)' onmouseover='Tip(\"  Top Wifey Material!!!\")' onmouseout='UnTip()'>[Wifey]</a>";
         setChoiceLink4 = "<a href='javascript:userChoiceShow(4)' onmouseover='Tip(\"  Top Trickable If You Got It!!!\")' onmouseout='UnTip()'>[Trick]</a>";

         document.getElementById('photoHeaderText').innerHTML= "Most Viewed Photos";
         document.getElementById('photoHeaderText2').innerHTML= setChoiceLink1;
         document.getElementById('relatedAreaSmall1').innerHTML=  setChoiceLink2;
         document.getElementById('relatedAreaSmall2').innerHTML=  setChoiceLink3;
         document.getElementById('relatedAreaSmall3').innerHTML=  setChoiceLink4;
   	  break;
   	  
   	  case 2: 
         setChoiceLink1 = "";
         setChoiceLink2 = "<a href='javascript:userChoiceShow(1)' onmouseover='Tip(\"  Most Viewed Photos!!!\")' onmouseout='UnTip()'>[Views]</a>";
         setChoiceLink3 = "<a href='javascript:userChoiceShow(3)' onmouseover='Tip(\"  Top Wifey Material!!!\")' onmouseout='UnTip()'>[Wifey]</a>";
         setChoiceLink4 = "<a href='javascript:userChoiceShow(4)' onmouseover='Tip(\"  Top Trickable If You Got It!!!\")' onmouseout='UnTip()'>[Trick]</a>";

         document.getElementById('photoHeaderText').innerHTML= "Top Magazine Quality";
         document.getElementById('photoHeaderText2').innerHTML= setChoiceLink1;
         document.getElementById('relatedAreaSmall1').innerHTML=  setChoiceLink2;
         document.getElementById('relatedAreaSmall2').innerHTML=  setChoiceLink3;
         document.getElementById('relatedAreaSmall3').innerHTML=  setChoiceLink4;
   	  break;
   	  
   	  case 3: 
         setChoiceLink1 = "";
         setChoiceLink2 = "<a href='javascript:userChoiceShow(1)' onmouseover='Tip(\"  Most Viewed Photos!!!\")' onmouseout='UnTip()'>[Views]</a>";
         setChoiceLink3 = "<a href='javascript:userChoiceShow(2)' onmouseover='Tip(\"  Top Magazine Quality Photos!!!\")' onmouseout='UnTip()'>[Magazine]</a>";
         setChoiceLink4 = "<a href='javascript:userChoiceShow(4)' onmouseover='Tip(\"  Top Trickable If You Got It!!!\")' onmouseout='UnTip()'>[Trick]</a>";

         document.getElementById('photoHeaderText').innerHTML= "Top Wifey Material";
         document.getElementById('photoHeaderText2').innerHTML= setChoiceLink1;
         document.getElementById('relatedAreaSmall1').innerHTML=  setChoiceLink2;
         document.getElementById('relatedAreaSmall2').innerHTML=  setChoiceLink3;
         document.getElementById('relatedAreaSmall3').innerHTML=  setChoiceLink4;
   	  break;
   	  
   	  case 4: 
         setChoiceLink1 = "";
         setChoiceLink2 = "<a href='javascript:userChoiceShow(1)' onmouseover='Tip(\"  Most Viewed Photos!!!\")' onmouseout='UnTip()'>[Views]</a>";
         setChoiceLink3 = "<a href='javascript:userChoiceShow(2)' onmouseover='Tip(\"  Top Magazine Quality Photos!!!\")' onmouseout='UnTip()'>[Magazine]</a>";
         setChoiceLink4 = "<a href='javascript:userChoiceShow(3)' onmouseover='Tip(\"  Top Wifey Material!!!\")' onmouseout='UnTip()'>[Wifey]</a>";

         document.getElementById('photoHeaderText').innerHTML= "Top Trickable Models";
         document.getElementById('photoHeaderText2').innerHTML= setChoiceLink1;
         document.getElementById('relatedAreaSmall1').innerHTML=  setChoiceLink2;
         document.getElementById('relatedAreaSmall2').innerHTML=  setChoiceLink3;
         document.getElementById('relatedAreaSmall3').innerHTML=  setChoiceLink4;
   	  break;

   }

   ajaxpage(rootdomain+'/LovelyPhotoFiles/CategoryViewedPhotos.php?choice='+choice, 'relatedPhotoArea');

}

<!-- ############################################################################### -->

function clearErrorMessage2(messageArea)
{
	document.getElementById(messageArea).innerHTML= "";

  if ((emailgood) && (verifygood) && (otherfieldsgood) && (securitygood)) 
  {
  	  document.getElementById('erroralert').innerHTML= ""; 
  }
}

<!-- ############################################################################### -->

function submitErrorMessage(messageArea,message)
{
     document.getElementById(messageArea).innerHTML= message;
     document.getElementById(messageArea).style.color="red";

     document.getElementById('erroralert').innerHTML= errormessage;
     document.getElementById('erroralert').style.color="red";
}

<!-- ############################################################################### -->

<!-- ############################################################################### -->

function checkemail(eemail,vemail){

   var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

   eemail.value = eemail.value.toLowerCase();
   vemail.value = vemail.value.toLowerCase();
   
   if (filter.test(eemail.value))
   {
      emailgood=true;
      clearErrorMessage2('emessage');
      
      if (vemail.value != "")
      {
      	  verifyemail(eemail,vemail);
      }
   }
   else
   {
      submitErrorMessage('emessage',invalidemail);
      emailgood=false;
   }
    return (emailgood);
}

<!-- ############################################################################### -->

function verifyemail(eemail,vemail)
{
   var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

   eemail.value = eemail.value.toLowerCase();
   vemail.value = vemail.value.toLowerCase();

   if (filter.test(vemail.value))
   {
	    if (eemail.value == vemail.value)
	    {
         verifygood=true;
         clearErrorMessage2('vmessage');
	    }
	    else
	  	{
         submitErrorMessage('vmessage',invalidverify);
         verifygood=false;
	    }
	 }
	 else
	 {
      submitErrorMessage('vmessage',invalidemail);
      emailgood=false;
	 }
   return (verifygood);
}

<!-- ############################################################################### -->

function checkSecurity(s_code)
{
	    var security_code = s_code.value;
	    
      xmlhttp=GetXmlHttpObject();
      if (xmlhttp==null) {alert ("Browser does not support HTTP Request"); return; }	
      xmlhttp.open('get', rootdomain+'/phpClasses/LovelySecrets_Security.php?security_code='+security_code, false);
   
      xmlhttp.onreadystatechange = function (){
   	     if (xmlhttp.readyState == 4) 
         {
            if (xmlhttp.status == 200) 
            {
               security = xmlhttp.responseText; 

               if (security == 1)
               {
                  securitygood=true;
                  clearErrorMessage2('securitym');
               }
               else
               {
                  submitErrorMessage('securitym',invalidsecurity);
                  securitygood=false;
               }
            }
         }
    	};
      xmlhttp.send(null);	
      
      return(securitygood);
}

<!-- ############################################################################### -->


function checkFields()
{
   var app =  document.getElementById("feedback");
   
   otherfieldsgood=true;
   
   if (app.firstname.value =="")   {otherfieldsgood=false; submitErrorMessage('firstnamem',invalidentry);}      else {clearErrorMessage2('firstnamem');}
   if (app.email.value =="")       {otherfieldsgood=false; submitErrorMessage('emessage',invalidentry);}   else {checkemail(app.email,app.emailverify);}
   if (app.emailverify.value =="") {otherfieldsgood=false; submitErrorMessage('vmessage',invalidentry);}   else {verifyemail(app.email,app.emailverify);}
   if (app.state.value =="")       {otherfieldsgood=false; submitErrorMessage('statem',invalidentry);}     else {clearErrorMessage2('statem');}
   if (app.country.value =="")     {otherfieldsgood=false; submitErrorMessage('countrym',invalidentry);}   else {clearErrorMessage2('countrym');}
   if (app.security_code.value ==""){otherfieldsgood=false; submitErrorMessage('securitym',invalidentry);}   else {checkSecurity(app.security_code);}

}

<!-- ############################################################################### -->

var goodSubmit;
function confirmFeedbackSubmit()
{
	//idform = document.modelapp;
	
	checkFields();
	
  if ((emailgood) && (verifygood) && (otherfieldsgood) && (securitygood)) 
	{
	   goodSubmit=true;
     //idform.submit();
	}
	else
	{
		 goodSubmit=false;
	}
  return goodSubmit;
}

<!-- ############################################################################### -->

// <span id="lovelyPhotoAreaBrokenText"><a href="javascript:openPictureWindow_Fever('undefined','http://www.lovelysecrets.com/Photos/Large/<? echo $photolink ?>.jpg','800','1200','LovelySecrets.com','','')" >Larger Size</a>

/*   
   <img src="http://www.lovelysecrets.com/Photos/Large/<? echo $photolink ?>.jpg" width="480" height="720" />

   <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" 
   classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="720" > 
   <param name="movie" value="http://www.britepic.com/britepic.swf"> 
   <param name="FlashVars" value="id=827488&src=http://www.lovelysecrets.com/Photos/Large/<? echo $photolink ?>.jpg&keywords=fashion,%20models,%20lingerie,%20thongs,%20sexy%20girls,%20photography,glamour&show_ads=1&show_menu=0&caption=It%20Is%20A%20Secret&width=480&height=720&" > 
   <param name="allowscriptaccess" value="always"> 
   <param name="wmode" value="transparent"> 
   <embed src="http://www.britepic.com/britepic.swf" flashvars="id=827488&src=http://www.lovelysecrets.com/Photos/Large/<? echo $photolink ?>.jpg&keywords=fashion,%20models,%20lingerie,%20thongs,%20sexy%20girls,%20photography,glamour&show_ads=1&show_menu=0&caption=It%20Is%20A%20Secret&width=480&height=720&" 
   allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" 
   wmode="transparent" type="application/x-shockwave-flash" width="480" height="720"></embed></object>
*/
