<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery女性月经安全期计算器代码 - 网页模板</title>
<link type="text/css" rel="stylesheet" href="css/public_v2.css" />
<link type="text/css" rel="stylesheet" href="css/base.css" />
<link type="text/css" rel="stylesheet" href="css/blue.css" />
<link href="css/userLogin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="js/newfemale.js"></script>
<script language='javascript' src="js/userLogin.js"></script>
<meta http-equiv="Cache-Control" content="no-transform" />
</head>
<body>
<INPUT style="DISPLAY: none" id=nowElement type=hidden>
<div class="wrapper">
<!-- header end -->
<!-- main -->
<div class="main">
<div class="mod_2b">
<h2>女性月经周期与排卵期计算器</h2>
<div class="health clearfix">
<div class="mod_1b mod_safe">
<div class="time_lag clearfix">
<span>平常两次月经大概相隔:</span>
<a class="minus" onclick='female.fallOff();'></a>
<input type="text" id='minMensesPriod' readonly value="28"/>
<INPUT type='hidden' id=minMensesing class=circleCss value=5>
<a onclick='female.increase();' class="plus"></a>
<a onclick='female.creset();' id='acrest' class="again" style="display:none">重新测试</a>
</div>
<div class="safe_detail" id='womensafeDateCon'>
<div class="safe_calendar" id='chosecal'>
<span class="date_first" id='popCss'>请点击选择月经第一天</span>
<div class="date_select">
<span class="year" id="leftYear">2012</span>
<b>年</b>
<a href='javascript:void(0);' id='yearLink'></a>
<span id='leftMonth' class="month">10</span>
<b>月</b>
<a href='javascript:void(0);' id='monthLink' class=""></a>
</div>
<ul class="date_detail" id='leftTable'>
<li class="week">日</li>
<li class="week">一</li>
<li class="week">二</li>
<li class="week">三</li>
<li class="week">四</li>
<li class="week">五</li>
<li class="week">六</li>
<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>
</ul>
</div>
<div class="safe_calendar safe_calendar_right" style='display:none' id ='rightCal'>
<div class="date_select" >
<span class="year" id='rightYear'>2012</span>
<b>年</b>
<a href='javascript:void(0);' id="rYearLink"></a>
<span class="month" id='rightMonth'>10</span>
<b>月</b>
<a href='javascript:void(0);' id="rMonthLink"></a>
</div>
<ul class="date_detail" id='rightTable'>
<li class="week">日</li>
<li class="week">一</li>
<li class="week">二</li>
<li class="week">三</li>
<li class="week">四</li>
<li class="week">五</li>
<li class="week">六</li>
<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>
</ul>
</div>
<div class="rightLogin">
<div class="loginTitle">安全期订阅</div>
<div class="userLogin">
<!--订阅开始-->
<div class='box_main'>
<div id="register" class="register">
<form id="form" action="http://www.xwcms.net/" method="post" onSubmit="return check();">
<div id="form_submit" class="form_submit">
<div class="fieldset">
<div class="field-group">
<label class="required title">订阅方式</label>
<span class="control-group" style="line-height:28px;">
<input id="way_mobile" type="radio" value="mobile" name="username" id="username" checked onclick="__changeUserName('mobile');">
手机号码
<input id="way_email" type="radio" value="email" name="username" id="username" onclick="__changeUserName('email');">
邮箱 </span>
</div>
<div class="field-group" id="telSend">
<label class="required title">手机号码</label>
<span class="control-group" id="mobile_input">
<div class="input_add_long_background">
<input class="register_input" type="text" id="mobile" name="mobile" maxLength="11" value="" onBlur="__changeUserName('mobile');">
</div>
</span>
</div>
<div class="field-group" style="display:none;" id="emailSend">
<label class="required title">订阅邮箱</label>
<span class="control-group" id="email_input">
<div class="input_add_long_background">
<input class="register_input" type="text" id="email" name="email" maxLength="50" value="" onBlur="__changeUserName('email');">
</div>
</span>
</div>
<div class="field-group">
<label class="required title">通知时间</label>
<span class="control-group" id="notificationTime_input">
<div class="input_add_long_background">
<input class="register_input" type="text" id="notificationTime" name="notificationTime" maxLength="50" value="">
</div>
</span>
</div>
<div class="field-group" id="telYzm">
<label class="required title">验证码</label>
<span class="control-group" id="code_input">
<div class="input_add_background" style="margin-right:15px;">
<input class="register_input_ot" type="text" id="code" name="code" max_length="6" value="" onBlur="checkAuthCode(this.value);">
</div>
</span>
</div>
</div>
</div>
<div id="div_submit" class="div_submit">
<div class='div_submit_button'>
<input id="submit" type="submit" value="确定" class='button_button disabled'>
</div>
</div>
</form>
</div>
<script type="text/javascript">
function __changeUserName(of){
var username=$('#'+of).val();
if(of=='email'){
$("#telSend").hide();
$("#telYzm").hide();
$("#emailSend").show();
if (username.search(/^[\w\.+-]+@[\w\.+-]+$/) == -1) {
showTooltips('email_input','请输入正确的Email地址!');
return;
}
}
else{
$("#telSend").show();
$("#telYzm").show();
$("#emailSend").hide();
if(username=='' || !isMobilePhone(username)) {
showTooltips('mobile_input','请输入正确的手机号码');
return;
}
}
}
function checkEmail(email) {
if (email.search(/^.+@.+$/) == -1) {
showTooltips('email_input','邮箱格式不正确');
}else {
hideTooltips('email_input');
}
}
function checkAuthCode(authcode) {
if (authcode == '' || authcode.length != 6) {
showTooltips('code_input','验证码不正确');
}else {
hideTooltips('code_input');
}
}
function check() {
var ckh_result = true;
var getSelectValue= $("input[name='username']:checked").val();
if(getSelectValue=='mobile')
{
hideAllTooltips();
if($('#mobile').val()=='' || !isMobilePhone($('#mobile').val())) {
showTooltips('mobile_input','手机号码不正确');
ckh_result = false;
}
if ($('#code').val() == '' || $('#code').val().length !=6) {
showTooltips('code_input','验